Linux Kernel ksmbd SMB2 Logoff Use-After-Free Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's ksmbd component, which implements the SMB3 protocol in kernel space. This vulnerability occurs in the session logoff handler, where the 'user' object of a session can be freed while still being accessed by another thread. This flaw can lead to kernel memory corruption and potentially allow arbitrary code execution in kernel context.

Impact

Exploitation of this vulnerability causes a use-after-free condition, leading to memory corruption and the possibility of executing arbitrary code within the kernel.

Reproduction

The vulnerability can be reproduced by sending a session logoff request while another thread is processing a normal request that uses the session's 'user' object. This can be achieved by binding a second connection to an existing session and then initiating the logoff, which frees the 'user' object without proper synchronization.

Remediation

The vulnerability has been fixed in the official Linux Git repository.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
7.5
exploitability
6.0
remediation
7.7
relevance
0.0
threat
6.4
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.