{"id":"CVE-2026-43013","aliases":["CVE-2026-43013"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5: lag: Check for LAG device before creating debugfs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/mlx5: lag: Verificar dispositivo LAG antes de crear debugfs\n\n__mlx5_lag_dev_add_mdev() puede devolver 0 (éxito) incluso cuando ocurre un error que se maneja de forma controlada. En consecuencia, el flujo de inicialización procede a llamar a mlx5_ldev_add_debugfs() incluso cuando no hay un contexto LAG válido.\n\nmlx5_ldev_add_debugfs() creaba ciegamente el directorio y los atributos de debugfs. Esto exponía interfaces (como el archivo members) que dependen de un puntero ldev válido, lo que llevaba a posibles desreferencias de puntero NULL si se accedía cuando ldev es NULL.\n\nAñadir una verificación para verificar que mlx5_lag_dev(dev) devuelve un puntero válido antes de intentar crear las entradas de debugfs.","source":"nvd"}],"published":"2026-05-01T14:15:18.907Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"7f46a0b7327ae261f9981888708dbca22c283900","fixed":"a3db46d5f4df92630a96f7bc77b60e75c2353e06","status":"affected"},{"type":"git","introduced":"7f46a0b7327ae261f9981888708dbca22c283900","fixed":"7129632cab3e4d23510b21930aa73b8d97a859f5","status":"affected"},{"type":"git","introduced":"7f46a0b7327ae261f9981888708dbca22c283900","fixed":"cfa774e6c920c81e700327bf10db8cb50d5db456","status":"affected"},{"type":"git","introduced":"7f46a0b7327ae261f9981888708dbca22c283900","fixed":"c53cf44588a93000f71817a6bb87a66353c48dee","status":"affected"},{"type":"git","introduced":"7f46a0b7327ae261f9981888708dbca22c283900","fixed":"89c65f2fcd8801365b410f40a427cbcd7f4c28e9","status":"affected"},{"type":"git","introduced":"7f46a0b7327ae261f9981888708dbca22c283900","fixed":"bf16bca6653679d8a514d6c1c5a2c67065033f14","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.19","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a3db46d5f4df92630a96f7bc77b60e75c2353e06","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7129632cab3e4d23510b21930aa73b8d97a859f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cfa774e6c920c81e700327bf10db8cb50d5db456","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c53cf44588a93000f71817a6bb87a66353c48dee","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89c65f2fcd8801365b410f40a427cbcd7f4c28e9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf16bca6653679d8a514d6c1c5a2c67065033f14","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T15:25:52.038Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43013","url":"https://www.cve.org/CVERecord?id=CVE-2026-43013","licence":"CVE Terms of Use","modified":"2026-11-06T15:32:26.150Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43013","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43013","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:20.393Z","epss":{"score":0.00128,"percentile":0.02623,"date":"2026-12-01T12:00:22.000Z"}}