CVE-2026-43013

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

State
Published
Severity
Not scored
Published
May 1, 2026
Updated
May 11, 2026
Reserved
May 1, 2026

Read the record on cve.org

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

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7f46a0b7327ae261f9981888708dbca22c283900 to before a3db46d5f4df92630a96f7bc77b60e75c2353e06Affected
  • 7f46a0b7327ae261f9981888708dbca22c283900 to before 7129632cab3e4d23510b21930aa73b8d97a859f5Affected
  • 7f46a0b7327ae261f9981888708dbca22c283900 to before cfa774e6c920c81e700327bf10db8cb50d5db456Affected
  • 7f46a0b7327ae261f9981888708dbca22c283900 to before c53cf44588a93000f71817a6bb87a66353c48deeAffected
  • 7f46a0b7327ae261f9981888708dbca22c283900 to before 89c65f2fcd8801365b410f40a427cbcd7f4c28e9Affected
  • 7f46a0b7327ae261f9981888708dbca22c283900 to before bf16bca6653679d8a514d6c1c5a2c67065033f14Affected
LinuxLinux
  • 5.19Affected
  • before 5.19Not affected
  • 6.1.168 through 6.1.*Not affected
  • 6.6.134 through 6.6.*Not affected
  • 6.12.81 through 6.12.*Not affected
  • 6.18.22 through 6.18.*Not affected
  • 6.19.12 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.