VYPR
High severity8.8NVD Advisory· Published May 20, 2025· Updated Jul 30, 2026

CVE-2025-37947

CVE-2025-37947

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

10
  • Linux/Kernelllm-fuzzy8 versions
    (expand)+ 7 more
    • (no CPE)
    • (no CPE)range: 5.15
    • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*range: >=5.15,<6.1.139
    • cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*
  • osv-coords
    Range: >= 5.15.0, < 6.1.139
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

Patches

Vulnerability mechanics

References

7

News mentions

0

No linked articles in our index yet.