CVE-2025-37947
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-37947 is a vulnerability discovered in the Linux kernel's ksmbd filesystem component, specifically affecting the ksmbd_vfs_stream_write() function. The vulnerability was disclosed on May 20, 2025, and affects various Linux distributions including Debian and Ubuntu systems (NVD, Wiz).

Technical details

The vulnerability stems from a missing bounds check in the ksmbd_vfs_stream_write() function. The function failed to validate whether the write offset (*pos) was within the bounds of the existing stream data length (v_len). When *pos was greater than or equal to v_len, it could result in an out-of-bounds memory write. The issue has been assigned a CVSS v3.1 base score of 5.5 with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (RedHat, Wiz).

Impact

If successfully exploited, this vulnerability could lead to out-of-bounds memory writes in the Linux kernel, potentially resulting in memory corruption, system crashes, or privilege escalation (Wiz).

Mitigation and workarounds

The vulnerability has been patched by adding a validation check for the write offset in ksmbd_vfs_stream_write(). The fix ensures that *pos is less than v_len before proceeding with the write operation, returning -EINVAL if the condition fails. For Debian's stable distribution (bookworm), these problems have been fixed in version 6.1.140-1 (Debian).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68764N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • linux-raspi
NoYesJan 05, 2026
CVE-2025-68758N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt
NoYesJan 05, 2026
CVE-2025-68756N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesJan 05, 2026
CVE-2025-68753N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management