CVE-2024-57925

ksmbd: fix a missing return value check bug

HIGH
7.1
CVSS Score
Published: January 19, 2025 at 11:52 AM UTC
Updated: June 17, 2026 at 08:14 AM 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.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix a missing return value check bug In the smb2_send_interim_resp(), if ksmbd_alloc_work_struct() fails to allocate a node, it returns a NULL pointer to the in_work pointer. This can lead to an illegal memory write of in_work->response_buf when allocate_interim_rsp_buf() attempts to perform a kzalloc() on it. To address this issue, incorporating a check for the return value of ksmbd_alloc_work_struct() ensures that the function returns immediately upon allocation failure, thereby preventing the aforementioned illegal memory access.

Affected

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

5.15.145 ≤ v < 5.15.1775.15.145 ≤ v < 5.166.1.71 ≤ v < 6.1.1256.6 ≤ v < 6.12.106.6 ≤ v < 6.136.6 ≤ v < 6.6.726.7 ≤ v < 6.12.1041bba4414cda37d63952c9bff9c3d5812a195.15.1456.1.716.13 rc16.13 rc26.13 rc36.13 rc46.13 rc56.13 rc66f0207218c4c125f5bf32055ac4220b4ef3b7e67f8cf1ebb7de62c7d807707ce4abb69d483629263
Vendor states this is fixed in 271ae0edbfc942795c162e6cf20d2bc02bd7fde4 (fixed)
Vendor states this is fixed in 2976e91a3e569cf2c92c9f71512c0ab1312fe965 (fixed)
Vendor states this is fixed in 4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c (fixed)
Vendor states this is fixed in 781c743e18bfd9b7dc0383f036ae952bd1486f21 (fixed)
Vendor states this is fixed in ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce (fixed)
Vendor states this is fixed in 5.15.177 (unaffected)
Affected range stops below 5.16, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.1.125 (unaffected)
Vendor states this is fixed in 6.12.10 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)
Vendor states this is fixed in 6.6.72 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/271ae0edbfc942795c162e6cf20d2bc02bd7fde4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2976e91a3e569cf2c92c9f71512c0ab1312fe965
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/781c743e18bfd9b7dc0383f036ae952bd1486f21
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/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

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

Quick Info

StatusMODIFIED
CWE
CWE-476

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