CVE-2026-43013

MEDIUM

net/mlx5: lag: Check for LAG device before creating debugfs

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: lag: Check for LAG device before creating debugfs __mlx5_lag_dev_add_mdev() may return 0 (success) even when an error occurs that is handled gracefully. Consequently, the initialization flow proceeds to call mlx5_ldev_add_debugfs() even when there is no valid LAG context. mlx5_ldev_add_debugfs() blindly created the debugfs directory and attributes. This exposed interfaces (like the members file) that rely on a valid ldev pointer, leading to potential NULL pointer dereferences if accessed when ldev is NULL. Add a check to verify that mlx5_lag_dev(dev) returns a valid pointer before attempting to create the debugfs entries.

Scores

CVSS v3 5.5
EPSS 0.0001
EPSS Percentile 2.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (16)
Linux/Linux < 5.19
Linux/Linux 5.19
Linux/Linux 6.1.168 - 6.1.*
Linux/Linux 6.12.81 - 6.12.*
Linux/Linux 6.18.22 - 6.18.*
Linux/Linux 6.19.12 - 6.19.*
Linux/Linux 6.6.134 - 6.6.*
Linux/Linux 7.0
Linux/Linux 7f46a0b7327ae261f9981888708dbca22c283900 - 7129632cab3e4d23510b21930aa73b8d97a859f5
Linux/Linux 7f46a0b7327ae261f9981888708dbca22c283900 - 89c65f2fcd8801365b410f40a427cbcd7f4c28e9
... and 6 more
Published May 01, 2026
Tracked Since May 01, 2026