Critical Memory Access Vulnerability in Linux Kernel (CVE-2024-57925)

linux Updated 02 Oct 2025

Summary

19/01/2025
N/A
Yes i
High
7.1

CVE-2024-57925: 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 po... Affects linux versions < 6.1.128-1. Fixed in 6.1.128-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It is known for its stability, performance, and security features. However, like any complex software, it can have vulnerabilities. CVE-2024-57925 specifically affects the ksmbd module, which is responsible for SMB (Server Message Block) protocol support, enabling file sharing and network communication. This vulnerability arises from a missing return value check in the code, which can lead to illegal memory access.

Vulnerability Detail

CVE-2024-57925 is a vulnerability in the Linux kernel's ksmbd module, where the function smb2_send_interim_resp() does not properly check the return value of ksmbd_alloc_work_struct(). If this function fails to allocate memory, it returns a NULL pointer, leading to an illegal memory write when allocate_interim_rsp_buf() tries to access in_work->response_buf. This can result in undefined behavior, potential data corruption, or system crashes, making it a significant security risk.

How To Fix

Minimum fixed version

6.1.128-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch by updating the kernel as described in the 'how_to_fix' section.

Conclusion

CVE-2024-57925 is a critical vulnerability in the Linux kernel's ksmbd module that can lead to illegal memory access. Users are strongly advised to update their systems to the latest patched version to mitigate potential risks. Regular monitoring for vulnerabilities using tools like Vulert can help maintain system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-57925 is a vulnerability in the Linux kernel's ksmbd module that can lead to illegal memory access due to a missing return value check.

The vulnerability can cause undefined behavior, data corruption, or system crashes, posing a significant security risk.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application against CVE-2024-57925 using the Vulert playground at Vulert Scanner.

Yes, a patch is available. Users should update their Linux kernel to the latest version to mitigate this vulnerability.

While there are no specific workarounds, it is crucial to prioritize updating your kernel to protect against this vulnerability as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.128-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback