CVE-2025-37947

Source
https://cve.org/CVERecord?id=CVE-2025-37947
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37947.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37947
Downstream
Published
2025-05-20T16:01:43.788Z
Modified
2026-05-07T04:17:20.793241Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
ksmbd: prevent out-of-bounds stream writes by validating *pos
Details

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: prevent out-of-bounds stream writes by validating *pos

ksmbdvfsstreamwrite() did not validate whether the write offset (*pos) was within the bounds of the existing stream data length (vlen). 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37947.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0626e6641f6b467447c81dd7678a69c66f7746cf
Fixed
7f61da79df86fd140c7768e668ad846bfa7ec8e1
Fixed
04c8a38c60346bb5a7c49b276de7233f703ce9cb
Fixed
d62ba16563a86aae052f96d270b3b6f78fca154c
Fixed
e6356499fd216ed6343ae0363f4c9303f02c5034
Fixed
0ca6df4f40cf4c32487944aaf48319cb6c25accc

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37947.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
6.1.139
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.91
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.29
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.14.7

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37947.json"