CVE-2025-37947
HIGHLinux Kernel 5.15-6.1.139, 6.2-6.6.91, 6.7-6.12.29, 6.13-6.14.7 - Out-of-bounds Write in ksmbd_vfs_stream_write
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-37947. PoCs published by doyensec.
AI-analyzed exploit summary This repository contains a functional exploit for CVE-2025-37947, targeting a use-after-free vulnerability in the Linux kernel's KSMBD module. The exploit leverages SMB2 write requests and message queue manipulation to achieve arbitrary code execution in kernel context, ultimately spawning a root shell.
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.
Exploits (1)
This repository contains a functional exploit for CVE-2025-37947, targeting a use-after-free vulnerability in the Linux kernel's KSMBD module. The exploit leverages SMB2 write requests and message queue manipulation to achieve arbitrary code execution in kernel context, ultimately spawning a root shell.
References (7)
Scores
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H