Linux Kernel Hisilicon Network Subsystem Memory Leak Vulnerability in hnae_ae_register Function

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's handling of the Hisilicon Network Subsystem. The issue arises in the hnae_ae_register function, where the device_register call can fail. If this happens, the reference count of the associated kobject is not properly decremented, leading to a leak of the name allocated by dev_set_name. This leaked name is not freed, causing unreferenced memory. The vulnerability affects several versions of the Linux kernel.

Impact

The vulnerability can lead to a memory leak, where allocated memory is not properly released, potentially causing increased memory usage and degradation of system performance over time.

Reproduction

The vulnerability can be reproduced by probing a module that registers a device with the Hisilicon Network Subsystem. If the device_register call fails, the hnae_ae_register function does not properly release the allocated name, leading to a memory leak. This can be observed by monitoring the system's memory usage for unfreed allocations related to the hnae0 device.

Remediation

The vulnerability has been addressed in the Linux kernel. Users should upgrade to a version that includes the fix.

Added: Sep 16, 2025, 6:16 PM
Updated: Sep 16, 2025, 6:16 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
4.3
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.