CVE-2024-26954: ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
If ->NameOffset of smb2_create_req is smaller than Buffer offset of
smb2_create_req, slab-out-of-bounds read can happen from smb2_open.
This patch set the minimum value of the name offset to the buffer offset
to validate name length of smb2_create_req().
Security readout for executives and security teams
Plain-English summary
A malformed SMB2 create request can make Linux's in-kernel SMB server, ksmbd, read beyond allocated memory. The supplied CVSS score is 8.1, with potentially high confidentiality and availability impact. Organizations actively using ksmbd should prioritize patched kernels; systems not running the service are less likely exposed.
Executive priority
Treat as a high-priority kernel update for systems actively providing SMB through ksmbd, especially across broad network boundaries. Prioritize exposure confirmation immediately and remediation through supported kernel packages. Lower the priority only after confirming ksmbd is inactive, unreachable, or the vendor kernel already contains the fix.
Technical view
In smb2_open, a NameOffset smaller than smb2_create_req's Buffer offset can cause smb_strndup_from_utf16() to perform a slab out-of-bounds read during name validation. The fix enforces the Buffer offset as the minimum name offset before calculating the request name length. CVSS indicates network access, low complexity, low privileges, and no user interaction.
Likely exposure
Exposure is most likely where ksmbd is enabled, serving SMB, reachable over a network, and running an affected kernel build. Affected-version data in the bundle is ambiguous, so distribution backports and patch presence must be checked. Merely having Linux installed does not establish exposure.
Exploitation context
The bundle marks this CVE as absent from KEV and provides no cited evidence of active exploitation or public exploit availability. This is not proof that exploitation has never occurred. Network reachability and low attack complexity increase concern, although the CVSS vector indicates low privileges are required.
Researcher notes
The affected-version data is insufficiently structured to establish exact vulnerable ranges; it mixes release identifiers and repeated commit hashes. Validate vendor backports through advisories or code presence rather than version strings alone. The source bundle identifies no CWE, and it does not establish exploitation in the wild.
Mitigation direction
Update to a vendor-supported kernel release containing the applicable Linux stable fix or equivalent backport.
Prioritize hosts where ksmbd serves SMB across untrusted or broadly accessible networks.
Until updated, restrict ksmbd SMB reachability to required clients using existing network controls.
Follow distribution security advisories for packaged kernel versions and backport status.
Validation and detection
Inventory kernel versions and determine whether ksmbd is enabled and serving SMB.
Compare each kernel package against its distribution advisory and documented backport status.
Verify the applicable stable fix or equivalent code change is present after updating.
Confirm network controls limit SMB reachability to required clients.
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.
cve · low confidence lookup
CVE-2024-26954 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
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.