Linux Kernel Refcount Update Vulnerability in SMB2 Compound Operation

Vulnerability

A vulnerability in the Linux kernel's SMB2 compound operation can lead to inconsistent reference count updates, potentially causing resource leaks. This issue arises because one control flow path fails to drop a reference to a file, contrary to the function's documentation. When an allocation error occurs, existing callers do not properly manage the reference count, creating a risk of resource mismanagement.

Impact

The vulnerability could lead to resource leaks, where allocated resources are not properly released, potentially causing memory exhaustion or other resource-related issues.

Reproduction

The vulnerability can be reproduced by invoking the SMB2 compound operation in a scenario where the function's documentation is not followed, specifically by not dropping the reference to the file after the operation. This can be done by causing an allocation failure that returns an error, which existing callers do not handle, leaving the reference count improperly managed.

Remediation

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

Added: Sep 16, 2025, 4:02 PM
Updated: Sep 16, 2025, 4:02 PM

Vulnerability Rating

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