CVE-2025-9640
Samba vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-9640) was discovered in Samba's vfsstreamsxattr module, affecting all versions since 3.2. The flaw allows an authenticated user to read unlimited samples of discarded heap memory due to uninitialized memory being written into alternate data streams. The vulnerability was discovered and reported by Andrew Walker of IX Systems and the Samba Team (Samba Security).

Technical details

The vulnerability stems from a failure to initialize memory in streamsxattrpwrite() function within the vfsstreamsxattr file server module. The issue occurs when write requests create holes in the file. The vulnerability has been assigned a CVSS v3.1 score of 4.3 (Medium) with the vector string AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N. The vulnerability is classified as CWE-908 (Use of Uninitialized Resource) (NVD, Samba Security).

Impact

The vulnerability allows authenticated users to read residual memory content that may contain sensitive data. However, Samba's practice of erasing known secrets before freeing the associated memory somewhat mitigates the potential impact of the data leak (Samba Security).

Mitigation and workarounds

Systems that don't use vfsstreamsxattr are not affected. As a workaround, administrators can check their smb.conf for the string 'streams_xattr' and remove it from the 'vfs objects' list, though this will affect functionality. For a permanent fix, patches have been released, and Samba versions 4.23.2, 4.22.5, and 4.21.9 have been issued as security releases to correct the defect. Samba administrators are advised to upgrade to these releases or apply the patch as soon as possible (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
  • samba-winbind-krb5-locator-debuginfo
NoYesNov 07, 2025
CVE-2020-25720HIGH7.5
  • SambaSamba
  • samba-winbind-libs-32bit
NoYesNov 17, 2024
CVE-2025-0620MEDIUM4.9
  • SambaSamba
  • samba-common
NoYesJun 06, 2025
CVE-2025-9640MEDIUM4.3
  • SambaSamba
  • libwbclient-devel
NoYesOct 15, 2025
CVE-2025-58160LOW2.3
  • RustRust
  • glycin-loaders
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