CVE-2024-26936

ksmbd: validate request buffer size in smb2_allocate_rsp_buf()

HIGH
7.8
CVSS Score
Published: May 1, 2024 at 05:26 AM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.6%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate request buffer size in smb2_allocate_rsp_buf() The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.1595.15 ≤ v < 6.1.885.15 ≤ v < 6.6.295.15 ≤ v < 6.8.85.15 ≤ v < 6.95.16 ≤ v < 6.1.886.2 ≤ v < 6.6.296.7 ≤ v < 6.8.86.9 rc16.9 rc26.9 rc36.9 rc46.9 rc5626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 17cf0c2794bdb6f39671265aa18aea5c22ee8c4a (fixed)
Vendor states this is fixed in 21ff9d7d223c5c19cb4334009e4c0c83a2f4d674 (fixed)
Vendor states this is fixed in 2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6 (fixed)
Vendor states this is fixed in 5c20b242d4fed73a93591e48bfd9772e2322fb11 (fixed)
Vendor states this is fixed in 8f3d0bf1d0c62b539d54c5b9108a845cff619b99 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.159 (unaffected)
Vendor states this is fixed in 6.1.88 (unaffected)
Vendor states this is fixed in 6.6.29 (unaffected)
Vendor states this is fixed in 6.8.8 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/17cf0c2794bdb6f39671265aa18aea5c22ee8c4a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/21ff9d7d223c5c19cb4334009e4c0c83a2f4d674
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5c20b242d4fed73a93591e48bfd9772e2322fb11
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f3d0bf1d0c62b539d54c5b9108a845cff619b99

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-120

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card