# CVE-2026-43013: net/mlx5: lag: Check for LAG device before creating debugfs

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-01T14:15:18.907Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7f46a0b7327ae261f9981888708dbca22c283900 before a3db46d5f4df92630a96f7bc77b60e75c2353e06; from 7f46a0b7327ae261f9981888708dbca22c283900 before 7129632cab3e4d23510b21930aa73b8d97a859f5; from 7f46a0b7327ae261f9981888708dbca22c283900 before cfa774e6c920c81e700327bf10db8cb50d5db456; from 7f46a0b7327ae261f9981888708dbca22c283900 before c53cf44588a93000f71817a6bb87a66353c48dee; from 7f46a0b7327ae261f9981888708dbca22c283900 before 89c65f2fcd8801365b410f40a427cbcd7f4c28e9; from 7f46a0b7327ae261f9981888708dbca22c283900 before bf16bca6653679d8a514d6c1c5a2c67065033f14; 5.19 (not affected: before 5.19; from 6.1.168 up to 6.1.*; from 6.6.134 up to 6.6.*; from 6.12.81 up to 6.12.*; from 6.18.22 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.19 before 6.1.168; from 6.2 before 6.6.134; from 6.7 before 6.12.81; from 6.13 before 6.18.22; from 6.19 before 6.19.12; 7.0

## References

- <https://git.kernel.org/stable/c/a3db46d5f4df92630a96f7bc77b60e75c2353e06> (patch)
- <https://git.kernel.org/stable/c/7129632cab3e4d23510b21930aa73b8d97a859f5> (patch)
- <https://git.kernel.org/stable/c/cfa774e6c920c81e700327bf10db8cb50d5db456> (patch)
- <https://git.kernel.org/stable/c/c53cf44588a93000f71817a6bb87a66353c48dee> (patch)
- <https://git.kernel.org/stable/c/89c65f2fcd8801365b410f40a427cbcd7f4c28e9> (patch)
- <https://git.kernel.org/stable/c/bf16bca6653679d8a514d6c1c5a2c67065033f14> (patch)

## Sources

- CVE List: [CVE-2026-43013](https://www.cve.org/CVERecord?id=CVE-2026-43013), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-43013](https://nvd.nist.gov/vuln/detail/CVE-2026-43013), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-43013 · Whole record: https://cve.day/CVE-2026-43013.json · Rebuilt by cve.day 2026-11-25T22:59:20.393Z
