CVE-2025-37947 Details
Description
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 bounds of the existing stream data length (v_len). If *pos was greater than or equal to v_len, this could lead to an out-of-bounds memory write. This patch adds a check to ensure *pos is less than v_len before proceeding. If the condition fails, -EINVAL is returned.
A vulnerability in the Linux kernel's ksmbd component allows for out-of-bounds memory writes. The issue arises in the vfs_stream_write function, where the write offset was not properly validated against the length of the existing stream data. This lack of validation could lead to memory corruption. The vulnerability has been addressed by adding a check to ensure the write offset is within the valid range before proceeding with the operation. If the check fails, an error is returned.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/doyensec/KSMBD-CVE-2025-37947/blob/main/CVE-2025-37947.c | CISA-ADP | Mailing ListThird Party Advisory |
| https://git.kernel.org/stable/c/04c8a38c60346bb5a7c49b276de7233f703ce9cb | kernel.org | Patch |
| https://git.kernel.org/stable/c/0ca6df4f40cf4c32487944aaf48319cb6c25accc | kernel.org | Patch |
| https://git.kernel.org/stable/c/7f61da79df86fd140c7768e668ad846bfa7ec8e1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d62ba16563a86aae052f96d270b3b6f78fca154c | kernel.org | Patch |
| https://git.kernel.org/stable/c/e6356499fd216ed6343ae0363f4c9303f02c5034 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-787 | Out-of-bounds Write | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15, < 6.1.139 >= 6.2, < 6.6.91 >= 6.7, < 6.12.29 >= 6.13, < 6.14.7 6.15 rc1 6.15 rc2 6.15 rc3 6.15 rc4 6.15 rc5 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 17, 2026 | Modified Analysis | [email protected] |
| Feb 13, 2026 | Reanalysis | [email protected] |
| Feb 13, 2026 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 27, 2025 | CVE Modified | CISA-ADP |
| May 20, 2025 | New CVE Received | kernel.org |