{"id":"CVE-2026-43013","summary":"net/mlx5: lag: Check for LAG device before creating debugfs","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: lag: Check for LAG device before creating debugfs\n\n__mlx5_lag_dev_add_mdev() may return 0 (success) even when an error\noccurs that is handled gracefully. Consequently, the initialization\nflow proceeds to call mlx5_ldev_add_debugfs() even when there is no\nvalid LAG context.\n\nmlx5_ldev_add_debugfs() blindly created the debugfs directory and\nattributes. This exposed interfaces (like the members file) that rely on\na valid ldev pointer, leading to potential NULL pointer dereferences if\naccessed when ldev is NULL.\n\nAdd a check to verify that mlx5_lag_dev(dev) returns a valid pointer\nbefore attempting to create the debugfs entries.","modified":"2026-05-18T06:00:12.050637812Z","published":"2026-05-01T14:15:18.907Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43013.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/7129632cab3e4d23510b21930aa73b8d97a859f5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/89c65f2fcd8801365b410f40a427cbcd7f4c28e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a3db46d5f4df92630a96f7bc77b60e75c2353e06"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bf16bca6653679d8a514d6c1c5a2c67065033f14"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c53cf44588a93000f71817a6bb87a66353c48dee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cfa774e6c920c81e700327bf10db8cb50d5db456"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43013.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43013"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7f46a0b7327ae261f9981888708dbca22c283900"},{"fixed":"a3db46d5f4df92630a96f7bc77b60e75c2353e06"},{"fixed":"7129632cab3e4d23510b21930aa73b8d97a859f5"},{"fixed":"cfa774e6c920c81e700327bf10db8cb50d5db456"},{"fixed":"c53cf44588a93000f71817a6bb87a66353c48dee"},{"fixed":"89c65f2fcd8801365b410f40a427cbcd7f4c28e9"},{"fixed":"bf16bca6653679d8a514d6c1c5a2c67065033f14"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-43013.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"6.1.168"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.134"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.81"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.22"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.12"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-43013.json"}}],"schema_version":"1.7.5"}