CVE-2025-37947ksmbd: prevent out-of-bounds stream writes by validating *pos
- 8.8HighCVSS base score
- 0.79%Exploitation in 30 daysEPSS · top 43% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
Timeline
ID reserved
By Linux
- 34 days later
· 34 days later
Published
- 15 months later
· 15 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADPADP (enrichment) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.79% · top 43% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < 7f61da79df86fd140c7768e668ad846bfa7ec8e1
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < 04c8a38c60346bb5a7c49b276de7233f703ce9cb
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < d62ba16563a86aae052f96d270b3b6f78fca154c
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < e6356499fd216ed6343ae0363f4c9303f02c5034
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < 0ca6df4f40cf4c32487944aaf48319cb6c25accc
- affected 5.15
- unaffected < 5.15
- unaffected 6.1.139 – ≤ 6.1.*
- unaffected 6.6.91 – ≤ 6.6.*
- unaffected 6.12.29 – ≤ 6.12.*
- unaffected 6.14.7 – ≤ 6.14.*
- unaffected 6.15 – ≤ *
References
References7
- https://git.kernel.org/stable/c/7f61da79df86fd140c7768e668ad846bfa7ec8e1 (opens in a new tab)
- https://git.kernel.org/stable/c/04c8a38c60346bb5a7c49b276de7233f703ce9cb (opens in a new tab)
- https://git.kernel.org/stable/c/d62ba16563a86aae052f96d270b3b6f78fca154c (opens in a new tab)
- https://git.kernel.org/stable/c/e6356499fd216ed6343ae0363f4c9303f02c5034 (opens in a new tab)
- https://git.kernel.org/stable/c/0ca6df4f40cf4c32487944aaf48319cb6c25accc (opens in a new tab)
- https://github.com/doyensec/KSMBD-CVE-2025-37947/blob/main/CVE-2025-37947.c (opens in a new tab)exploit
- https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-15903 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-37947)Record last updated .