Skip to main content

Linux Kernel CVE-2024-26980

HIGH
Out-of-bounds Read (CWE-125)
2024-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
8.2
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify host with ksmbd on TCP 445
  2. Delivery
    Craft undersized SMB2 TRANSFORM packet
  3. Exploit
    Send packet pre-authentication
  4. Execution
    Trigger skipped size validation
  5. Persist
    Slab out-of-bounds read in smb2_allocate_rsp_buf
  6. Impact
    Kernel 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Aug 04, 2026 - 13:04 cvss changed CVSS 8.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.

v1 Aug 04, 2026 - 13:04 cvss changed CVSS 8.2

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

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
vuln.today AI 8.2 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High

Lifecycle Timeline

6
Analysis Updated
Aug 04, 2026 - 13:06 vuln.today
v3 - CVSS changed
Analysis Updated
Aug 04, 2026 - 13:04 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 13:04 vuln.today
v1 - CVSS changed
Severity Changed
Aug 04, 2026 - 11:23 NVD
MEDIUM HIGH
CVSS changed
Aug 04, 2026 - 11:23 NVD
5.5 (MEDIUM) 8.2 (HIGH)
CVE Published
May 01, 2024 - 06:15 cve.org
MEDIUM 5.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
High
Linux kernel deployed in vast majority of server and cloud environments
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy