Out-of-Bounds Memory Write Vulnerability in Linux Kernel (CVE-2025-37947)
Summary
CVE-2025-37947: In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent out-of-bounds stream writes by validating *pos ksmbd_vfs_stream_write() did not validate whether the write offset (*pos) was within the b... Affects linux versions < 6.1.140-1. Fixed in 6.1.140-1. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interactions. It is known for its robustness, flexibility, and extensive support for various hardware architectures. This vulnerability specifically affects the ksmbd (Kernel SMB Direct) module, which facilitates file sharing over the SMB protocol. The vulnerability arises from inadequate validation of write offsets, potentially leading to severe security risks.
Vulnerability Detail
In the Linux kernel, specifically within the ksmbd_vfs_stream_write() function, there exists a vulnerability that fails to validate the write offset (*pos) against the existing stream data length (v_len). If the write offset is greater than or equal to the data length, it can result in an out-of-bounds memory write, which may lead to data corruption, crashes, or exploitation by malicious actors. This vulnerability has been assigned the identifier CVE-2025-37947.
How To Fix
Minimum fixed version
6.1.140-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 as soon as it becomes available.
Conclusion
CVE-2025-37947 represents a significant security vulnerability in the Linux kernel that could lead to severe consequences if left unaddressed. Users are encouraged to update their systems promptly to protect against potential exploitation. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for linux →
FAQ
CVE-2025-37947 is a vulnerability in the Linux kernel that allows for out-of-bounds memory writes due to insufficient validation of write offsets in the ksmbd module.
If exploited, this vulnerability could lead to data corruption, system crashes, or unauthorized access, posing significant security risks.
The vulnerability affects Linux versions in Debian 11, 12, and 13. It is advisable to check your current version and update accordingly.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.
While there are no specific workarounds, it is crucial to monitor the situation and apply the patch as soon as it is available to mitigate risks.
Related vulnerabilities
Recent vulnerabilities recorded for linux.