{"id":"CVE-2025-22039","aliases":["CVE-2025-22039"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: fix overflow in dacloffset bounds check","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix overflow in dacloffset bounds check\n\nThe dacloffset field was originally typed as int and used in an\nunchecked addition, which could overflow and bypass the existing\nbounds check in both smb_check_perm_dacl() and smb_inherit_dacl().\n\nThis could result in out-of-bounds memory access and a kernel crash\nwhen dereferencing the DACL pointer.\n\nThis patch converts dacloffset to unsigned int and uses\ncheck_add_overflow() to validate access to the DACL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix overflow in dacloffset bounds check\n\nThe dacloffset field was originally typed as int and used in an\nunchecked addition, which could overflow and bypass the existing\nbounds check in both smb_check_perm_dacl() and smb_inherit_dacl().\n\nThis could result in out-of-bounds memory access and a kernel crash\nwhen dereferencing the DACL pointer.\n\nThis patch converts dacloffset to unsigned int and uses\ncheck_add_overflow() to validate access to the DACL.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: corrección de desbordamiento en la comprobación de los límites de dacloffset. El campo dacloffset se tipificó originalmente como int y se usó en una adición sin comprobar, lo que podría desbordarse y omitir la comprobación de los límites existente tanto en smb_check_perm_dacl() como en smb_inherit_dacl(). Esto podría provocar un acceso a memoria fuera de los límites y un fallo del kernel al desreferenciar el puntero DACL. Este parche convierte dacloffset a unsigned int y utiliza check_add_overflow() para validar el acceso a la DACL.","source":"nvd"}],"published":"2025-04-16T14:11:56.975Z","modified":"2026-09-14T12:17:35.030Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125","CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"abbb4ec41867f2cd1c971258e493893bf43bcbd3","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"8483d7b532be1d1bc149556a2fedf903868c6303","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"73f074fb5e139cd42ad75089abe4e28a49a30003","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"6b8d379048b168a0dff5ab1acb975b933f368514","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"443b373a4df5a2cb9f7b8c4658b2afedeb16397f","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.23","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.11","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.2","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15","fixed":"6.12.23"},{"status":"affected","introduced":"6.13","fixed":"6.13.11"},{"status":"affected","introduced":"6.14","fixed":"6.14.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/abbb4ec41867f2cd1c971258e493893bf43bcbd3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8483d7b532be1d1bc149556a2fedf903868c6303","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/73f074fb5e139cd42ad75089abe4e28a49a30003","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b8d379048b168a0dff5ab1acb975b933f368514","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/443b373a4df5a2cb9f7b8c4658b2afedeb16397f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22039","url":"https://www.cve.org/CVERecord?id=CVE-2025-22039","licence":"CVE Terms of Use","modified":"2026-09-14T11:57:53.618Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22039","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22039","licence":"Public domain","modified":"2026-09-14T12:17:35.030Z"}],"updatedAt":"2026-11-25T22:58:56.578Z","epss":{"score":0.0081,"percentile":0.58085,"date":"2026-12-01T12:00:22.000Z"}}