CVE-2025-22043
NoneCVSS
—
EPSS
0.5%
Published
Apr 16, 2025
CISA due date
—
Cloudanix analysis
A missing safety check in the Linux kernel's file-sharing code could let remote attackers send bad data that crashes servers or opens the door to further attacks.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Other
- Component
- OS kernel
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing bounds check on durable handle context in ksmbd allows out-of-bounds memory access during SMB request processing in the Linux kernel.
Why it matters to the business
Systems using the Linux kernel SMB server face potential crashes or memory corruption that could lead to downtime or unauthorized access, though exploitation likelihood remains low with no known campaigns or ransomware use; patch promptly on affected distributions to avoid future risk.
How an attack unfolds
An attacker crafts an SMB request containing a durable handle context that violates expected size limits, sends it to a ksmbd-enabled server, and triggers the missing validation to cause invalid memory operations in the kernel.
How to fix it
Apply the upstream kernel fix from commit 8d4848c45943c9cf5e86142fd7347efa97f497db; on Red Hat Enterprise Linux 9 update NetworkManager-libreswan packages to version 1.2.22-4.el9_5 or later; disable ksmbd module if SMB server functionality is not required.
How to confirm the fix worked
Confirm kernel source contains commit 8d4848c45943c9cf5e86142fd7347efa97f497db, verify package versions match the fixed releases listed for each distribution, and re-test SMB durable handle operations with boundary test cases.
Typical attack path
- Establish an SMB connection to a target running ksmbd
- Send a session or tree connect request embedding an oversized durable handle context
- Trigger kernel path that processes the context without bounds validation
- Observe resulting memory corruption, crash, or potential code execution
How to detect it
Inspect kernel logs for oops or panic messages referencing ksmbd and durable handle context handling; review network captures for anomalous SMB packet structures with oversized context fields; correlate with unusual process terminations of smbd or kernel threads.
What your security team should do
- Prioritize kernel and package updates within the next maintenance window
- Disable ksmbd if SMB sharing is unnecessary
- Review network exposure of SMB ports and apply least-privilege firewall rules
- Monitor EPSS and KEV updates for any rise in exploit activity
The record
In the Linux kernel, the following vulnerability has been resolved: ksmbd: add bounds check for durable handle context Add missing bounds check for durable handle context.
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.6.87 |
| Mageia:9 | kernel | 0 | 6.6.88-3.mga9 |
| Mageia:9 | kernel-linus | 0 | 6.6.88-1.mga9 |
| Mageia:9 | kmod-virtualbox | 0 | 7.0.24-70.mga9 |
| Mageia:9 | kmod-xtables-addons | 0 | 3.24-78.mga9 |
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