Linux Kernel Net MLX5 Devcom Use-After-Free Vulnerability in Device Registration

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's net/mlx5 component, specifically within the device communication registration process. This issue arises when the allocation of a private structure (priv) fails. The mlx5 driver automatically frees the priv, which may have been allocated by a different thread. This improper handling can lead to use-after-free bugs. The vulnerability affects the Linux kernel stable group.

Impact

The vulnerability could be exploited to create use-after-free conditions, potentially leading to memory corruption or arbitrary code execution.

Reproduction

The vulnerability can be reproduced by simulating a failure in the device communication allocation process within the mlx5 driver. This can be done by modifying the driver to force an allocation failure, while ensuring that the priv structure is still freed. This scenario creates a use-after-free condition, as the priv may be deallocated while still being referenced, leading to potential memory corruption.

Remediation

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

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

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
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.