CVE-2025-38561 ksmbd: fix Preauh_HashValue race condition

Critical 9.8 Published Updated

A race condition in the Linux kernel's ksmbd module allows attackers to cause a denial of service via multiple session setup requests.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-38561?

CVE-2025-38561 is a critical vulnerability in Debian Debian Linux, published on 19 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-362

Which versions are affected by CVE-2025-38561?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38561?

Apply the vendor's patch.

Is CVE-2025-38561 being exploited?

There is no known exploitation of CVE-2025-38561 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-38561, DEBIAN-CVE-2025-38561, GHSA-6mwh-579p-fgpg, ROOT-OS-DEBIAN-11-CVE-2025-38561, ROOT-OS-DEBIAN-12-CVE-2025-38561, ROOT-OS-DEBIAN-13-CVE-2025-38561 and 2 more.

Is CVE-2025-38561 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free