CVE-2026-43013

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

MEDIUM
5.5
CVSS Score
Published: May 1, 2026 at 02:15 PM UTC
Updated: June 17, 2026 at 10:48 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.19 ≤ v < 6.1.1685.19 ≤ v < 6.12.815.19 ≤ v < 6.18.225.19 ≤ v < 6.19.125.19 ≤ v < 6.6.1345.19 ≤ v < 7.06.13 ≤ v < 6.18.226.19 ≤ v < 6.19.126.2 ≤ v < 6.6.1346.7 ≤ v < 6.12.815.197.0 rc17.0 rc27.0 rc37.0 rc47.0 rc57.0 rc67f46a0b7327ae261f9981888708dbca22c283900
Vendor states this is fixed in 7129632cab3e4d23510b21930aa73b8d97a859f5 (fixed)
Vendor states this is fixed in 89c65f2fcd8801365b410f40a427cbcd7f4c28e9 (fixed)
Vendor states this is fixed in a3db46d5f4df92630a96f7bc77b60e75c2353e06 (fixed)
Vendor states this is fixed in bf16bca6653679d8a514d6c1c5a2c67065033f14 (fixed)
Vendor states this is fixed in c53cf44588a93000f71817a6bb87a66353c48dee (fixed)
Vendor states this is fixed in cfa774e6c920c81e700327bf10db8cb50d5db456 (fixed)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 6.1.168 (unaffected)
Vendor states this is fixed in 6.12.81 (unaffected)
Vendor states this is fixed in 6.18.22 (unaffected)
Vendor states this is fixed in 6.19.12 (unaffected)
Vendor states this is fixed in 6.6.134 (unaffected)
Vendor states this is fixed in 7.0 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card