CVE-2024-56627: ksmbd: fix Out-of-Bounds Read in ksmbd_vfs_stream_read
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix Out-of-Bounds Read in ksmbd_vfs_stream_read
An offset from client could be a negative value, It could lead
to an out-of-bounds read from the stream_buf.
Note that this issue is coming when setting
'vfs objects = streams_xattr parameter' in ksmbd.conf.
Security readout for executives and security teams
Plain-English summary
A remote, authenticated SMB user may make a vulnerable Linux ksmbd server read beyond an internal stream buffer. This can expose kernel memory or disrupt the server. The flaw only arises when ksmbd uses the streams_xattr VFS configuration, substantially narrowing exposure.
Executive priority
Treat as a high-priority patch for exposed ksmbd servers using streams_xattr, especially where SMB is reachable across broad or untrusted networks. Systems not running ksmbd or not using that configuration are unlikely to meet the documented trigger. There is no supplied evidence of active exploitation.
Technical view
CVE-2024-56627 is a CWE-125 out-of-bounds read in ksmbd_vfs_stream_read. A client-controlled negative offset can access data outside stream_buf when streams_xattr is configured. CVSS 3.1 is 8.1: network-accessible, low complexity, low privileges, no user interaction, with potentially high confidentiality and availability impact.
Likely exposure
Prioritize Linux systems providing SMB through ksmbd with “vfs objects = streams_xattr” enabled. Exploitation requires low-privileged access according to the supplied CVSS vector. The bundle lists affected kernel versions, but its version data contains anomalies; confirm exposure against distribution advisories and the referenced stable fixes.
Exploitation context
The supplied record is not in CISA KEV, and none of the provided sources establishes active exploitation or public weaponization. Exploitation status therefore remains unconfirmed. Network reachability and authenticated SMB access increase practical risk, while the required streams_xattr configuration limits the exposed population.
Researcher notes
The central condition is a client-supplied negative offset reaching ksmbd_vfs_stream_read under streams_xattr. The supplied affected-version list includes repeated commit identifiers and an anomalous “0,” so it should not be treated as a clean version range. Use vendor package status or inclusion of the stable fixes for definitive validation.
Mitigation direction
Install a supported distribution or kernel update incorporating the referenced Linux stable fixes.
Confirm the exact fixed package or kernel release through the operating-system vendor.
If operationally acceptable, disable streams_xattr until the corrected kernel is deployed.
Restrict SMB access to trusted networks and authorized accounts while remediation is pending.
Validation and detection
Identify systems running ksmbd and record their kernel and distribution package versions.
Check ksmbd.conf for the streams_xattr VFS object setting.
Compare installed kernels with vendor advisories and the referenced stable fix commits.
After updating, verify the running kernel changed and normal SMB stream operations still work.
Review SMB and kernel logs for crashes or unusual authenticated client activity.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-125: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-125 · source CWE mapping
Out-of-bounds Read
Out-of-bounds Read represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.