CVE-2025-37947

Source
https://nvd.nist.gov/vuln/detail/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
Related
Published
2025-05-20T16:15:32Z
Modified
2025-08-13T00:00:21Z
Summary
[none]
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.

References

Affected packages