Vulnerability · Published Oct 15, 2025 · Assigned by redhat

CVE-2025-9640Samba: vfs_streams_xattr uninitialized memory write possible

Medium 4.3

In plain English

A medium-severity security flaw in samba. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.5%top 58.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A flaw was found in Samba, in the vfs_streams_xattr module, where uninitialized heap memory could be written into alternate data streams. This allows an authenticated user to read residual memory content that may include sensitive data, resulting in an information disclosure vulnerability.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.22samba4.21.9-r0ALPINE-CVE-2025-9640
Alpine:v3.23samba4.21.9-r0ALPINE-CVE-2025-9640
Alpine:v3.24samba4.21.9-r0ALPINE-CVE-2025-9640
Debian:12samba2:4.17.12+dfsg-0+deb12u3DEBIAN-CVE-2025-9640
Debian:13samba2:4.22.6+dfsg-0+deb13u1DEBIAN-CVE-2025-9640
Debian:14samba2:4.23.2+dfsg-1DEBIAN-CVE-2025-9640
Ubuntu:22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.10USN-7826-1
Ubuntu:22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.10UBUNTU-CVE-2025-9640
Ubuntu:24.04:LTSsamba2:4.19.5+dfsg-4ubuntu9.4USN-7826-1
Ubuntu:24.04:LTSsamba2:4.19.5+dfsg-4ubuntu9.4UBUNTU-CVE-2025-9640
Ubuntu:25.10samba2:4.22.3+dfsg-4ubuntu2.1UBUNTU-CVE-2025-9640
Ubuntu:25.10samba2:4.22.3+dfsg-4ubuntu2.1USN-7826-1

Affected products (as reported)

VendorProductVersions
samba 0 – before 4.21.94.22.0 – before 4.21.54.23.0 – before 4.23.2
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 6 see references
Red Hat Red Hat Enterprise Linux 6 see references
Red Hat Red Hat Enterprise Linux 7 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat OpenShift Container Platform 4 see references
Red Hat Red Hat OpenShift Container Platform 4 see references

Weakness: CWE-908 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

References