CVE Catalog

CVE-2025-37947

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.48%

39th percentile - higher than 39% of all known CVEs

Summary

In the ksmbd SMB server of the Linux kernel, a missing write offset validation was found in ksmbd_vfs_stream_write(). If *pos was greater than or equal to stream length, an out-of-bounds memory write could occur.

Risk Assessment

The bug allows an attacker with access to an SMB share to write beyond buffer boundaries, potentially leading to data corruption or system crash.

Recommendation

Update the Linux kernel to a version containing the fix adding a check for *pos < v_len.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS