Linux Kernel ksmbd Preauth_HashValue Race Condition Vulnerability

Vulnerability

A race condition vulnerability has been identified in the ksmbd component of the Linux kernel. This issue arises when a client sends multiple session setup requests, leading to a race condition with the Preauth_HashValue. The vulnerability is present in the Linux kernel stable tree. The root cause is the unnecessary freeing of the Preauth_HashValue during the session setup phase, which can instead be handled at the connection termination phase.

Impact

Exploitation of this vulnerability can lead to a race condition, where the timing of events can be manipulated, potentially causing unexpected behavior in the application.

Reproduction

To reproduce this vulnerability, send multiple session setup requests to a server running ksmbd in the Linux kernel. This can be done using a client that supports SMB2 protocol, such as a Windows machine or a Linux machine with Samba installed. The race condition can be observed by monitoring the handling of the Preauth_HashValue during the session setup process.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for upgrading the Linux kernel can be found in the official Linux kernel documentation.

Added: Aug 19, 2025, 6:49 PM
Updated: Aug 19, 2025, 6:49 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
7.7
relevance
0.3
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.