Linux Kernel vdpa_sim Memory Leak Vulnerability in Network and Block Initialization

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's vdpa_sim module, specifically within the network and block initialization functions. When the device_register() call fails, the reference count of the kobject is not properly decremented, leading to a leak of the name allocated by dev_set_name(). This issue can occur if the module is probed and the device registration fails, but the kobject reference is still held. The leaked names can be observed as unreferenced objects in the system.

Impact

Exploitation of this vulnerability leads to a memory leak, where allocated names are not properly freed, potentially causing increased memory usage over time.

Reproduction

The vulnerability can be reproduced by loading the vdpa_sim module into the Linux kernel. If the device_register() function fails during the initialization of either the network or block simulation components, but the kobject reference count is not reduced to zero, a memory leak occurs. This can be verified by checking for unreferenced objects corresponding to the leaked names shortly after the module is loaded.

Remediation

The vulnerability has been addressed in the Linux kernel. Users should upgrade to the latest version where this issue has been fixed.

Added: Dec 24, 2025, 1:36 PM
Updated: Dec 24, 2025, 1:36 PM

Vulnerability Rating

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