CVE-2025-22039

ksmbd: fix overflow in dacloffset bounds check

HIGH
7.1
CVSS Score
Published: April 16, 2025 at 02:11 PM UTC
Updated: September 14, 2026 at 12:17 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.8%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.2215.15 ≤ v < 6.1.1885.15 ≤ v < 6.12.235.15 ≤ v < 6.13.115.15 ≤ v < 6.14.25.15 ≤ v < 6.155.15 ≤ v < 6.6.1576.13 ≤ v < 6.13.116.14 ≤ v < 6.14.25.15626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 443b373a4df5a2cb9f7b8c4658b2afedeb16397f (fixed)
Vendor states this is fixed in 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc (fixed)
Vendor states this is fixed in 6b8d379048b168a0dff5ab1acb975b933f368514 (fixed)
Vendor states this is fixed in 73f074fb5e139cd42ad75089abe4e28a49a30003 (fixed)
Vendor states this is fixed in 8483d7b532be1d1bc149556a2fedf903868c6303 (fixed)
Vendor states this is fixed in abbb4ec41867f2cd1c971258e493893bf43bcbd3 (fixed)
Vendor states this is fixed in beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.221 (unaffected)
Vendor states this is fixed in 6.1.188 (unaffected)
Vendor states this is fixed in 6.12.23 (unaffected)
Vendor states this is fixed in 6.13.11 (unaffected)
Vendor states this is fixed in 6.14.2 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.157 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card