CVE-2025-9640
Samba vulnerability analysis and mitigation

Overview

A flaw was found in Samba, specifically in the vfsstreamsxattr module, where uninitialized heap memory could be written into alternate data streams. This vulnerability (CVE-2025-9640) affects all versions of Samba since 3.2 and was discovered and fixed in October 2025. The vulnerability allows an authenticated user to read residual memory content that may include sensitive data, resulting in an information disclosure vulnerability (Samba Security, NVD).

Technical details

The vulnerability exists in the streamsxattrpwrite() function within the vfsstreamsxattr file server module. The issue occurs when write requests create holes in the file, allowing an authenticated user to read an unlimited number of samples of discarded heap memory. The vulnerability has been assigned a CVSS v3.1 base score of 4.3 (MEDIUM) with the vector string: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N (Samba Security).

Impact

The vulnerability allows authenticated users to read residual memory content that may contain sensitive data. However, the impact is somewhat mitigated as Samba erases known secrets before freeing the associated memory (Samba Security).

Mitigation and workarounds

Systems that don't use vfsstreamsxattr are not affected. Users can check their smb.conf file for the string 'streamsxattr'. If there is a line containing 'vfs objects = streamsxattr', removing 'streams_xattr' from the 'vfs objects' list will avoid the vulnerability, though this will affect functionality. Additionally, patches have been released in Samba versions 4.23.2, 4.22.5, and 4.21.9 to address this issue (Samba Security).

Additional resources


SourceThis report was generated using AI

Related Samba vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-10230CRITICAL10
  • SambaSamba
  • libsamba-policy-python3-devel
NoYesOct 15, 2025
CVE-2020-25720HIGH7.5
  • SambaSamba
  • samba-krb5-printing-debuginfo
NoYesNov 17, 2024
CVE-2025-0620MEDIUM4.9
  • SambaSamba
  • samba-python3
NoYesJun 06, 2025
CVE-2025-9640MEDIUM4.3
  • SambaSamba
  • libwbclient-devel
NoYesOct 15, 2025
CVE-2025-58160LOW2.3
  • RustRust
  • loupe-debuginfo
NoYesAug 29, 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