Linux Kernel Net/Mlx5e Use-After-Free Vulnerability in Vport Rep Handling

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's net/mlx5e component. This issue arises during the driver unload process when unregister_netdev is called after the vport rep has been unloaded. As a result, the mlx5e_rep_priv structure is already freed, leading to attempts to access rpriv->netdev or traverse rpriv->tc_ht', which causes the use-after-free condition. The vulnerability has been addressed by adding checks to ensure that the data of the vport rep is only accessed when it is still loaded.

Impact

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

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
7.5
exploitability
5.3
remediation
0.0
relevance
0.0
threat
3.2
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.