CVE-2024-26954

ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()

HIGH
7.1
CVSS Score
Published: May 1, 2024 at 05:18 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.1
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

Description

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().

Affected

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

5.15 ≤ v < 6.1.1195.15 ≤ v < 6.6.325.15 ≤ v < 6.7.125.15 ≤ v < 6.8.35.15 ≤ v < 6.96.2 ≤ v < 6.7.126.8 ≤ v < 6.8.35.15626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 3b8da67191e938a63d2736dabb4ac5d337e5de57 (fixed)
Vendor states this is fixed in 4f97e6a9d62cb1fce82fbf4baff44b83221bc178 (fixed)
Vendor states this is fixed in 9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72 (fixed)
Vendor states this is fixed in a80a486d72e20bd12c335bcd38b6e6f19356b0aa (fixed)
Vendor states this is fixed in d70c2e0904ab3715c5673fd45788a464a246d1db (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 6.1.119 (unaffected)
Vendor states this is fixed in 6.6.32 (unaffected)
Vendor states this is fixed in 6.7.12 (unaffected)
Vendor states this is fixed in 6.8.3 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (6)

Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3b8da67191e938a63d2736dabb4ac5d337e5de57
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d70c2e0904ab3715c5673fd45788a464a246d1db
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

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
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

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