Linux Kernel
CVE-2024-26980
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify host with ksmbd on TCP 445
-
DeliveryCraft undersized SMB2 TRANSFORM packet
-
ExploitSend packet pre-authentication
-
ExecutionTrigger skipped size validation
-
PersistSlab out-of-bounds read in smb2_allocate_rsp_buf
-
ImpactKernel panic or memory disclosure
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The ksmbd kernel module must be loaded and actively serving SMB connections on TCP port 445. The attacker must be able to reach that port - no authentication is required because transform packet headers are processed at the pre-session parsing stage. The vulnerability is triggered specifically by sending a packet with ProtocolId == SMB2_TRANSFORM_PROTO_NUM (0xFD534D42) whose total size is smaller than sizeof(struct smb2_query_info_req). Exploitation is limited to Linux hosts where ksmbd is explicitly deployed as the SMB server; the module is not loaded by default in mainstream distributions (Ubuntu, RHEL, Debian), restricting exposure to NAS appliances, embedded Linux devices, or servers intentionally configured with ksmbd. |
| Impact | The CVSS 8.2 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H) scores this as high severity, reflecting a remotely exploitable, unauthenticated path to kernel crash - a compelling signal. However, real-world risk is substantially lower than the raw score implies. EPSS at 0.23% (13th percentile) indicates near-minimal exploitation probability among known CVEs, consistent with the absence of any KEV listing or published POC. The critical mitigating factor is that ksmbd must be explicitly loaded and configured as the system's SMB server; the overwhelming majority of Linux deployments do not run ksmbd. For organizations that do run ksmbd-based file servers (certain NAS devices, embedded Linux appliances, and purpose-built Samba replacements), the high availability impact from a kernel crash/panic and the potential for kernel memory disclosure via slab read make this a genuine patching priority. The CVSS confidentiality impact of C:L is consistent with slab OOB reads potentially exposing adjacent kernel memory, though reliable data exfiltration would require additional primitives. |
| Exploit ScenarioDerived | An attacker with network access to TCP port 445 on a host running ksmbd sends a crafted SMB2 TRANSFORM packet (ProtocolId = 0xFD534D42) with a payload smaller than sizeof(struct smb2_query_info_req). The kernel's smb2_allocate_rsp_buf() reads beyond the allocated slab boundary, either triggering a kernel panic (denial of service) or leaking adjacent kernel slab memory to the attacker. No authentication is required and no published POC has been identified, making exploitation a matter of fuzzing or protocol-level crafting. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Aug 04, 2026
Slab-out-of-bounds read in the Linux kernel's ksmbd SMB server subsystem allows a remote unauthenticated attacker to cause a kernel crash (availability impact) and leak kernel slab memory contents (limited confidentiality impact) by sending a crafted SMB2 TRANSFORM packet smaller than sizeof(struct smb2_query_info_req). The flaw stems from ksmbd bypassing request size validation when the ProtocolId field equals SMB2_TRANSFORM_PROTO_NUM, which is the encrypted-session header type for SMB3. No active exploitation confirmed (not in CISA KEV) and EPSS sits at 0.23% (13th percentile), but the network-accessible, pre-authentication attack surface warrants patching on any host running ksmbd.
Earlier versions of this analysis (2)
Slab-out-of-bounds read in the Linux kernel's ksmbd SMB server allows network-adjacent unauthenticated attackers to crash the kernel (high availability impact) or read limited kernel heap memory by sending a crafted SMB2_TRANSFORM protocol request. The flaw exists because ksmbd skips request size validation when the ProtocolId is SMB2_TRANSFORM_PROTO_NUM, allowing a request smaller than sizeof(struct smb2_query_info_req) to trigger the out-of-bounds read in smb2_allocate_rsp_buf(). No public exploit or active exploitation (KEV) has been identified; EPSS at 0.23% (13th percentile) indicates low current exploitation probability.
Slab-out-of-bounds read in the Linux kernel's ksmbd SMB server subsystem allows a remote unauthenticated attacker to crash the kernel or leak kernel heap memory by sending a crafted SMB2 packet bearing the SMB2_TRANSFORM_PROTO_NUM protocol identifier. The oversized-header path bypasses request-size validation in smb2_allocate_rsp_buf(), triggering CWE-125 out-of-bounds read with high availability impact and limited confidentiality exposure. No public exploit code or CISA KEV listing exists; EPSS sits at 0.23% (13th percentile), indicating low real-world exploitation activity despite an 8.2 CVSS base score.
RemediationAI
Apply the upstream stable-tree patches available at kernel.org: commits 0977f89722ec, 3160d9734453, b80ba648714e, c119f4ede3fa, and da21401372607, all referenced in the NVD patch links. Fedora users should apply the kernel updates announced in the Fedora package-announce list (see https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/ and the related messages). If patching is not immediately possible, the most effective compensating control is to stop and disable the ksmbd module (rmmod ksmbd; echo 'blacklist ksmbd' > /etc/modprobe.d/ksmbd-blacklist.conf), eliminating the attack surface entirely - trade-off is loss of kernel-native SMB serving, which can be replaced by Samba userspace if needed. Alternatively, restrict TCP 445 access to trusted source IPs via firewall rules to limit exposure; this reduces but does not eliminate risk if an attacker already has network access.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ksmbd is the in-kernel SMB3 server module introduced in Linux 5.15, providing SMB2/SMB3 file sharing without a userspace daemon. The vulnerable function smb2_allocate_rsp_buf() allocates the response buffer based on SMB2 command type, but before this patch it ran before decryption and size validation for SMB2_TRANSFORM_PROTO_NUM (0xFD534D42) packets. CWE-125 (Out-of-bounds Read) applies: when the incoming packet is shorter than struct smb2_query_info_req, the function reads beyond the allocated slab object boundary. The fix reorders processing so smb3_decrypt_req() - which validates the transform request size - is called first, blocking the malformed packet before smb2_allocate_rsp_buf() is reached. Affected CPEs span multiple Linux kernel release series as confirmed by the five backport commits across stable trees (cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* and explicitly 6.9:rc1 through 6.9:rc5).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Network-reachable SMB port, no auth required at transform parsing stage, slab read leaks kernel memory (C:L), crash achievable (A:H), no integrity impact.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
6DescriptionCVE.org
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().
Executive ViewAI
A kernel vulnerability in ksmbd (Linux's SMB server subsystem) allows unauthenticated remote attackers to crash affected systems or extract sensitive kernel memory through specially crafted network packets. Organizations operating Linux-based file servers or network shares using ksmbd face immediate availability and confidentiality risks without patching. This affects any infrastructure relying on ksmbd for file-sharing services.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB