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 ksmbdvfsstream_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 ksmbdvfsstreamwrite() function. The function failed to validate whether the write offset (*pos) was within the bounds of the existing stream data length (vlen). 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 ksmbdvfsstreamwrite(). The fix ensures that *pos is less than vlen 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-2023-53687N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-extra
NoYesOct 07, 2025
CVE-2023-53686N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-partner
NoYesOct 07, 2025
CVE-2023-53685N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesOct 07, 2025
CVE-2023-53684N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-core
NoYesOct 07, 2025
CVE-2023-53683N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-fips
NoYesOct 07, 2025

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