cve.bz

CVE-2025-38561 Race Condition

4.7 mediumEPSS 0.5%Fix available

Medium (4.7). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix Preauh_HashValue race condition If client send multiple session setup requests to ksmbd, Preauh_HashValue race condition could happen. There is no need to free sess->Preauh_HashValue at session setup phase. It can be freed together with session at connection termination phase.

Severity

CVSS 3.1

4.7 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-09-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-38561 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-38561?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-38561?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-38561 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux5.15 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.148
Linux6.66.6.102
Linux6.126.12.42
Linux6.156.15.10
Linux6.166.16.1
Linuxlater releases6.17

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux-6.16.1.153-1~deb11u1DLA-4328-1
Debian12linux6.1.148-1DEBIAN-CVE-2025-38561
Debian13linux6.12.43-1DEBIAN-CVE-2025-38561
Debian14linux6.16.3-1DEBIAN-CVE-2025-38561
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-38561
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-38561
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-38561
Ubuntu22.04:LTSlinux, linux-lowlatency5.15.0-168.178UBUNTU-CVE-2025-38561 USN-8013-1
Ubuntu22.04:LTSlinux-aws5.15.0-1099.106UBUNTU-CVE-2025-38561 USN-8013-1
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1045.47~22.04.1UBUNTU-CVE-2025-38561 USN-8015-4
Ubuntu22.04:LTSlinux-azure5.15.0-1103.112UBUNTU-CVE-2025-38561 USN-8013-1
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1051.57~22.04.1UBUNTU-CVE-2025-38561 USN-8126-1
Ubuntu22.04:LTSlinux-azure-fde5.15.0-1109.118.1UBUNTU-CVE-2025-38561
Ubuntu22.04:LTSlinux-azure-fde-6.86.8.0-1046.53~22.04.1UBUNTU-CVE-2025-38561
Ubuntu22.04:LTSlinux-gcp5.15.0-1099.108UBUNTU-CVE-2025-38561 USN-8013-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1046.49~22.04.1UBUNTU-CVE-2025-38561 USN-8015-4
65 more for Ubuntu in the JSON and on Ubuntu's page.
Alpaquita23linux-lts6.1.151-r0BELL-CVE-2025-38561
Alpaquita25linux-lts6.12.44-r0BELL-CVE-2025-38561
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-38561

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability does not impact Red Hat Enterprise Linux as the in-kernel SMB server (ksmbd) is not built or supported in Red Hat kernels. The upstream flaw involves a race condition during concurrent SMB session negotiations that can lead to unexpected memory release and denial of service. Because Red Hat relies on userspace Samba packages for SMB file-sharing services, supported systems lack the affected kernel subsystem and are not exposed.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-38561.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • toshithh/CVE-2025-38561 Harbor Check: matches CVE 0 stars, created
    ksmbd: Preauh_HashValue race condition If client send multiple session setup requests to ksmbd, Preauh_HashValue race condition could happ…

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON