We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-22039

ksmbd: fix overflow in dacloffset bounds check



Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix overflow in dacloffset bounds check The dacloffset field was originally typed as int and used in an unchecked addition, which could overflow and bypass the existing bounds check in both smb_check_perm_dacl() and smb_inherit_dacl(). This could result in out-of-bounds memory access and a kernel crash when dereferencing the DACL pointer. This patch converts dacloffset to unsigned int and uses check_add_overflow() to validate access to the DACL.

Reserved 2024-12-29 | Published 2025-04-16 | Updated 2025-05-26 | Assigner Linux

Product status

Default status
unaffected

0626e6641f6b467447c81dd7678a69c66f7746cf before 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc
affected

0626e6641f6b467447c81dd7678a69c66f7746cf before 6b8d379048b168a0dff5ab1acb975b933f368514
affected

0626e6641f6b467447c81dd7678a69c66f7746cf before 443b373a4df5a2cb9f7b8c4658b2afedeb16397f
affected

0626e6641f6b467447c81dd7678a69c66f7746cf before beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42
affected

Default status
affected

5.15
affected

Any version before 5.15
unaffected

6.12.23
unaffected

6.13.11
unaffected

6.14.2
unaffected

6.15
unaffected

References

git.kernel.org/...c/6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc

git.kernel.org/...c/6b8d379048b168a0dff5ab1acb975b933f368514

git.kernel.org/...c/443b373a4df5a2cb9f7b8c4658b2afedeb16397f

git.kernel.org/...c/beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42

cve.org (CVE-2025-22039)

nvd.nist.gov (CVE-2025-22039)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-22039

Support options

Helpdesk Chat, Email, Knowledgebase