Linux Kernel KSMBD Session Lookup Reference Count Leak Vulnerability

Vulnerability

A reference count leak vulnerability has been identified in the Linux kernel's KSMBD (Kernel SMB Daemon) component. This issue arises during session lookups when a session is found but its state is not valid. The invalid state indicates that no valid session exists, yet the reference count from the session lookup is not properly decremented, leading to a leak. The vulnerability affects the Linux kernel stable tree.

Impact

The vulnerability causes a reference count leak, which can lead to memory management issues, such as increased memory usage or potential memory corruption.

Reproduction

To reproduce this vulnerability, initiate a session lookup in KSMBD where the session state is not SMB2_SESSION_VALID. The reference count will not be decremented properly, causing a leak.

Remediation

The vulnerability has been addressed in the Linux kernel stable tree by explicitly calling 'ksmbd_user_session_put' to release the reference to the session, thereby fixing the reference count leak.

Added: Jan 23, 2026, 4:04 PM
Updated: Jan 23, 2026, 4:04 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
7.7
relevance
2.3
threat
4.8
urgency
2.9
incentive
0.0

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