Bug 2360291 (CVE-2025-22039) - CVE-2025-22039 kernel: ksmbd: fix overflow in dacloffset bounds check
Summary: CVE-2025-22039 kernel: ksmbd: fix overflow in dacloffset bounds check
Keywords:
Status: NEW
Alias: CVE-2025-22039
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:06 UTC by OSIDB Bzimport
Modified: 2025-04-17 06:21 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:06:40 UTC
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.

Comment 1 Avinash Hanwate 2025-04-17 06:15:51 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041659-CVE-2025-22039-2a63@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.