Linux Kernel NBD Subsystem Use-After-Free Vulnerability in recv_work Function

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's Network Block Device (NBD) subsystem. This issue arises in the 'recv_work' function when the 'NBD_CLEAR_SOCK' and 'NBD_CMD_RECONFIGURE' commands are processed. The vulnerability occurs due to improper management of reference counts, which can lead to a situation where a configuration object is freed while it is still being used, potentially causing memory corruption or other unintended behavior.

Impact

Exploitation of this vulnerability leads to a use-after-free condition, which can commonly be exploited to execute arbitrary code or cause a denial-of-service by crashing the system.

Reproduction

The vulnerability can be reproduced by connecting to an NBD device and triggering the 'recv_work' function. This can be done by sending the 'NBD_CMD_RECONFIGURE' command after the 'NBD_CLEAR_SOCK' command has been processed, without properly managing the reference counts of the configuration object. This sequence of commands creates a race condition that the vulnerability exploits.

Remediation

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

Added: Dec 24, 2025, 12:04 PM
Updated: Dec 24, 2025, 12:04 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.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.