Linux Kernel ksmbd Refcount Leak Vulnerability

Vulnerability

A refcount leak vulnerability has been identified in the Linux kernel's ksmbd component, specifically within the stable group. This issue arises because the reference count was not properly decremented when a connection was being released, leading to a memory leak where the count did not reach zero, preventing the memory from being freed. The vulnerability affects several versions of the Linux kernel.

Impact

Exploitation of this vulnerability leads to a refcount leak, causing memory to not be released properly, which could result in increased memory usage and potential exhaustion of system resources.

Reproduction

The vulnerability can be reproduced by simulating a scenario where a connection is being released in the ksmbd component. This can be done by triggering the 'ksmbd_conn_releasing' function, which should return true, indicating that the connection is being closed. However, due to the vulnerability, the reference count will not be decremented correctly, causing a leak. This can be observed by monitoring the reference count and the corresponding memory usage, which will show that the memory is not being released as expected.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched. The specific commit addressing this issue is available in the Linux kernel stable tree.

Added: Sep 5, 2025, 7:14 PM
Updated: Sep 5, 2025, 7:14 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
5.7
remediation
7.7
relevance
0.4
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.