Exploit database

Vulnerability

CVE-2025-37947

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

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · Linux

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

1 source
doyensec/ksmbd-cve-2025-37947
GH-1fe1b46cfe7e174e0ba5c4f18f729405GitHubUnofficial GitHub sourcePreferred

Blog Post: https://blog.doyensec.com/2025/10/08/ksmbd-3.html

2025-10-037 files · 21 stars