CVE-2024-26980: ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
If ->ProtocolId is SMB2_TRANSFORM_PROTO_NUM, smb2 request size
validation could be skipped. if request size is smaller than
sizeof(struct smb2_query_info_req), slab-out-of-bounds read can happen in
smb2_allocate_rsp_buf(). This patch allocate response buffer after
decrypting transform request. smb3_decrypt_req() will validate transform
request size and avoid slab-out-of-bound in smb2_allocate_rsp_buf().
Security readout for executives and security teams
Plain-English summary
A malformed, unauthenticated network request to Linux's ksmbd SMB server can trigger an out-of-bounds kernel memory read. The documented impact includes limited information exposure and potentially serious service or system disruption. Risk is concentrated on systems running ksmbd and exposing SMB to untrusted networks.
Executive priority
Prioritize exposed ksmbd servers for prompt assessment and patching because malformed unauthenticated traffic may disrupt availability. Internet-facing or broadly reachable SMB services deserve accelerated handling. Systems not using ksmbd have materially lower direct exposure, but asset and configuration verification is still required.
Technical view
SMB2 transform requests could bypass request-size validation before smb2_allocate_rsp_buf() accessed the request as a larger structure, causing a slab out-of-bounds read. The kernel fix moves response-buffer allocation until after smb3_decrypt_req() validates the transformed request. CVSS 3.1 is 8.2: network-accessible, low complexity, unauthenticated, with low confidentiality and high availability impact.
Likely exposure
Likely exposure is limited to Linux systems using the in-kernel ksmbd server, especially where SMB is network-reachable. The bundle identifies affected 5.15 and later kernel branches with several version boundaries, but its version data is insufficient to determine every distribution-specific affected package reliably.
Exploitation context
The supplied record describes remote, unauthenticated exploitation conditions with no user interaction. It does not establish code execution. CISA KEV status is false, and the supplied sources provide no evidence of active exploitation; absence from KEV does not prove exploitation has never occurred.
Researcher notes
The vulnerable ordering permits size validation to be skipped for SMB2 transform protocol requests. The correction validates and decrypts the transform request before response allocation. The bundle provides multiple stable-tree commits, suggesting branch-specific backports; confirm ancestry or distribution package status instead of relying solely on displayed version numbers.
Mitigation direction
Install a vendor-supported kernel containing the applicable upstream stable fix.
Follow distribution advisories to map fixed kernels to packaged version numbers.
Disable ksmbd where kernel-hosted SMB service is unnecessary.
Restrict SMB access to trusted networks until updates are confirmed.
Validation and detection
Inventory Linux kernel and distribution package versions across SMB-serving hosts.
Confirm whether ksmbd is enabled, loaded, or configured to start.
Identify whether SMB ports are reachable from untrusted networks.
Verify the installed kernel includes the applicable referenced stable fix.
Review kernel logs for unexplained ksmbd faults or memory-access failures.
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-26980 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.