8.5
HIGH CVSS 3.1
CVE-2025-38561
ksmbd: fix Preauh_HashValue race condition
Description

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.

INFO

Published Date :

Aug. 19, 2025, 5:15 p.m.

Last Modified :

Oct. 17, 2025, 1:15 p.m.

Remotely Exploit :

Yes !

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-38561 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
Update the Linux kernel to resolve a race condition in ksmbd.
  • Update the Linux kernel to the latest version.
  • Apply the provided patch for ksmbd.
  • Restart the affected service.
Public PoC/Exploit Available at Github

CVE-2025-38561 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-38561 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-38561 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

ksmbd: Preauh_HashValue race condition If client send multiple session setup requests to ksmbd, Preauh_HashValue race condition could happen.

Python Shell

Updated: 3 weeks ago
0 stars 0 fork 0 watcher
Born at : Oct. 8, 2025, 6:20 p.m. This repo has been linked 1 different CVEs too.

DSA and DLA for Debian last 14 days

Python

Updated: 5 days, 10 hours ago
0 stars 0 fork 0 watcher
Born at : Feb. 12, 2025, 2:08 p.m. This repo has been linked 578 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 5 days, 10 hours ago
7345 stars 1210 fork 1210 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 837 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-38561 vulnerability anywhere in the article.

  • CybersecurityNews
Linux Kernel ksmbd Vulnerability Allows Remote Attackers to Execute Arbitrary Code

A severe vulnerability in the Linux kernel’s ksmbd SMB server implementation has been disclosed, potentially allowing authenticated remote attackers to execute arbitrary code on affected systems. The ... Read more

Published Date: Sep 25, 2025 (1 month ago)

The following table lists the changes that have been made to the CVE-2025-38561 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 17, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
    Added CWE CWE-362
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 10, 2025

    Action Type Old Value New Value
    Added Reference https://www.zerodayinitiative.com/advisories/ZDI-25-916/
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 19, 2025

    Action Type Old Value New Value
    Added Description 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.
    Added Reference https://git.kernel.org/stable/c/44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6
    Added Reference https://git.kernel.org/stable/c/6613887da1d18dd2ecfd6c6148a873c4d903ebdc
    Added Reference https://git.kernel.org/stable/c/7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc
    Added Reference https://git.kernel.org/stable/c/b69fd87076daa66f3d186bd421a7b0ee0cb45829
    Added Reference https://git.kernel.org/stable/c/edeecc7871e8fc0878d53ce286c75040a0e38f6c
    Added Reference https://git.kernel.org/stable/c/fbf5c0845ed15122a770bca9be1d9b60b470d3aa
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 8.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact