CVE-2025-22039
NoneCVSS
—
EPSS
0.8%
Published
Apr 16, 2025
CISA due date
—
Cloudanix analysis
A flaw in the Linux kernel's file sharing code could let a remote user send bad data that crashes the entire system.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Buffer Overflow
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in dacloffset field (previously signed int) bypasses bounds checks in smb_check_perm_dacl() and smb_inherit_dacl() via unchecked addition, enabling out-of-bounds memory access and kernel crash on DACL pointer dereference.
Why it matters to the business
Systems running the vulnerable kernel module may experience unexpected crashes or denial of service when handling certain SMB requests, potentially disrupting file sharing services and requiring restarts; widespread kernel deployments increase exposure surface.
How an attack unfolds
An attacker sends a crafted SMB packet containing a specially chosen dacloffset value that triggers signed integer overflow during addition, bypassing the existing bounds check and causing the kernel to dereference an invalid DACL pointer leading to a crash.
How to fix it
Upgrade affected packages to the listed fixed versions: thunderbird (Red Hat:rhel_eus:9.2::appstream) to 0:128.4.0-1.el9_2 and equivalent debug packages; apply kernel commit 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc or later stable releases that convert dacloffset to unsigned int and add check_add_overflow() validation.
How to confirm the fix worked
Confirm kernel source contains the unsigned int conversion and check_add_overflow() usage in the relevant DACL functions; verify package versions match the fixed releases and test SMB DACL operations do not crash under boundary conditions.
Typical attack path
- Identify a target system exposing ksmbd over SMB
- Craft an SMB request with malicious dacloffset value designed to overflow
- Send the request to smb_check_perm_dacl() or smb_inherit_dacl() paths
- Trigger out-of-bounds access resulting in kernel panic or crash
How to detect it
Review kernel logs for oops/panic entries mentioning dacloffset, smb_check_perm_dacl, or smb_inherit_dacl; inspect SMB traffic captures for anomalous DACL offset values; correlate with ksmbd process crashes.
What your security team should do
- Prioritize kernel and ksmbd updates on all exposed systems within the next patching cycle
- Disable ksmbd if SMB server functionality is not required
- Monitor for kernel oops or panic logs related to DACL handling
- Apply network segmentation to limit SMB exposure from untrusted sources
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | linux | 0 | No fix |
| Debian:12 | linux | 0 | No fix |
| Debian:13 | linux | 0 | No fix |
| Debian:13 | linux | 0 | 6.12.25-1 |
| Linux | Kernel | 5.15.0 | 6.12.23 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39869 In the Linux kernel, the following vulnerability has been resolved: dmaengine: ti: edma… Also affects linux
- CVE-2025-39873 In the Linux kernel, the following vulnerability has been resolved: can: xilinx_can… Also affects linux
- CVE-2025-39863 In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix… Also affects linux
- CVE-2025-39865 In the Linux kernel, the following vulnerability has been resolved: tee: fix NULL pointer… Also affects linux
- CVE-2025-39866 In the Linux kernel, the following vulnerability has been resolved: fs: writeback: fix… Also affects linux