CVE-2025-22038
NoneCVSS
—
EPSS
0.6%
Published
Apr 16, 2025
CISA due date
—
Cloudanix analysis
A flaw in the Linux kernel's file-sharing component could let attackers crash systems or peek at nearby memory by sending bad login data, so organizations should install the vendor's kernel update.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in ksmbd when psid->sub_auth[psid->num_subauth-1] is accessed without validating that num_subauth is non-zero, allowing memory corruption on crafted SID structures.
Why it matters to the business
Kernel crashes or limited information disclosure can interrupt SMB file sharing services on affected Red Hat real-time Linux systems, with moderate urgency due to 560 days since publication and low but increasing exploit probability.
How an attack unfolds
An attacker sends a specially crafted SMB authentication or session setup request containing a SID structure with num_subauth set to zero; ksmbd then performs an unchecked array access leading to the out-of-bounds read.
How to fix it
Upgrade all listed kernel-rt packages on Red Hat Enterprise Linux 9.2 to version 5.14.0-284.92.1.rt14.377.el9_2 or later; apply the update across nfv and realtime variants and reboot.
How to confirm the fix worked
Verify running kernel version matches or exceeds the fixed release for each kernel-rt package; confirm absence of the vulnerable ksmbd SID handling code path via source inspection or vendor advisory.
Typical attack path
- Establish SMB connection to ksmbd listener
- Craft SID with num_subauth=0 in authentication blob
- Send malformed request triggering sub_auth access
- Observe kernel oops or read adjacent memory contents
How to detect it
Search kernel logs and ksmbd audit trails for oops or panic messages referencing SID sub_auth access or num_subauth; correlate with inbound SMB traffic from untrusted sources.
What your security team should do
- Prioritize patching all Red Hat 9.2 real-time kernel deployments within standard change windows
- Monitor for kernel oops reports involving ksmbd
- Review SMB exposure and restrict ksmbd to trusted networks where possible
The record
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate zero num_subauth before sub_auth is accessed Access psid->sub_auth[psid->num_subauth - 1] without checking if num_subauth is non-zero leads to an out-of-bounds read. This patch adds a validation step to ensure num_subauth != 0 before sub_auth is accessed.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | linux | 0 | No fix |
| Debian:11 | linux-6.1 | 0 | 6.1.137-1~deb11u1 |
| 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.1.134 |
| 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