{"id":"CVE-2026-74717","aliases":["CVE-2026-74717"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5: fw_tracer, return NULL on create error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: fw_tracer, return NULL on create error\n\nTracer creation can fail by returning either NULL or ERR_PTR.\nThe return value is stored without a check on the device, and users\ntreat ERR_PTR and NULL the same way.\nThis also causes a crash in the core dump logic, which is missing the\nERR_PTR check and ends up dereferencing it, as shown in the trace below.\n\nSwitch tracer creation to return NULL on failure only, so callers only\nneed a single NULL check.\n\n  Internal error: Oops: 0000000096000006 [#1]  SMP\n  Modules linked in: mlx5_ib ib_uverbs ib_core ipv6 mlx5_core\n  CPU: 1 UID: 0 PID: 12 Comm: kworker/u16:0 Not tainted 6.19.7 #1 PREEMPT(none)\n  Workqueue: mlx5_health0001:01:00.0 mlx5_fw_reporter_err_work [mlx5_core]\n  pstate: a3400009 (NzCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--)\n  pc : mlx5_fw_tracer_trigger_core_dump_general+0x58/0xe0 [mlx5_core]\n  lr : mlx5_fw_tracer_trigger_core_dump_general+0x40/0xe0 [mlx5_core]\n  sp : ffff800081cf3c40\n  x29: ffff800081cf3c90 x28: 0000000000000000 x27: 0000000000000000\n  x26: ffff000080018828 x25: 0000000000000000 x24: ffff000080304a05\n  x23: ffff800081cf3d80 x22: ffff0000847e01a0 x21: 0000000000000000\n  x20: ffff0000847e01a0 x19: ffffffffffffffa1 x18: ffff80008310bbf0\n  x17: ffff800080119650 x16: ffff80008010df54 x15: ffff80008010d4ac\n  x14: ffff800079c202e4 x13: ffff80008002fe60 x12: ffff800080119650\n  x11: ffff80008010df54 x10: ffff80008010d4ac x9 : ffff800079c203d8\n  x8 : ffff800081cf3c88 x7 : 0000000000000000 x6 : 0000000000000000\n  x5 : 0000000000000000 x4 : 0000000000000008 x3 : 0000000000000030\n  x2 : 0000000000000008 x1 : 0000000000000000 x0 : 00000000c5c4000e\n  Call trace:\n   mlx5_fw_tracer_trigger_core_dump_general+0x58/0xe0 [mlx5_core] (P)\n   mlx5_fw_reporter_dump+0x30/0x2e0 [mlx5_core]\n   devlink_health_do_dump+0x9c/0x160\n   devlink_health_report+0x1c0/0x288\n   mlx5_fw_reporter_err_work+0xac/0xc0 [mlx5_core]\n   process_one_work+0x15c/0x3d8\n   worker_thread+0x18c/0x320\n   kthread+0x148/0x228\n   ret_from_fork+0x10/0x20\n  Code: b9400000 5ac00800 7a401800 540003ca (3940a260)\n  ---[ end trace 0000000000000000 ]---\n  Kernel panic - not syncing: Oops: Fatal exception\n  SMP: stopping secondary CPUs\n  Kernel Offset: disabled\n  CPU features: 0x000000,00078031,75fce5a1,35fffe67\n  Memory Limit: none\n  ---[ end Kernel panic - not syncing: Oops: Fatal exception ]---","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: fw_tracer, return NULL on create error\n\nTracer creation can fail by returning either NULL or ERR_PTR.\nThe return value is stored without a check on the device, and users\ntreat ERR_PTR and NULL the same way.\nThis also causes a crash in the core dump logic, which is missing the\nERR_PTR check and ends up dereferencing it, as shown in the trace below.\n\nSwitch tracer creation to return NULL on failure only, so callers only\nneed a single NULL check.\n\n  Internal error: Oops: 0000000096000006 [#1]  SMP\n  Modules linked in: mlx5_ib ib_uverbs ib_core ipv6 mlx5_core\n  CPU: 1 UID: 0 PID: 12 Comm: kworker/u16:0 Not tainted 6.19.7 #1 PREEMPT(none)\n  Workqueue: mlx5_health0001:01:00.0 mlx5_fw_reporter_err_work [mlx5_core]\n  pstate: a3400009 (NzCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--)\n  pc : mlx5_fw_tracer_trigger_core_dump_general+0x58/0xe0 [mlx5_core]\n  lr : mlx5_fw_tracer_trigger_core_dump_general+0x40/0xe0 [mlx5_core]\n  sp : ffff800081cf3c40\n  x29: ffff800081cf3c90 x28: 0000000000000000 x27: 0000000000000000\n  x26: ffff000080018828 x25: 0000000000000000 x24: ffff000080304a05\n  x23: ffff800081cf3d80 x22: ffff0000847e01a0 x21: 0000000000000000\n  x20: ffff0000847e01a0 x19: ffffffffffffffa1 x18: ffff80008310bbf0\n  x17: ffff800080119650 x16: ffff80008010df54 x15: ffff80008010d4ac\n  x14: ffff800079c202e4 x13: ffff80008002fe60 x12: ffff800080119650\n  x11: ffff80008010df54 x10: ffff80008010d4ac x9 : ffff800079c203d8\n  x8 : ffff800081cf3c88 x7 : 0000000000000000 x6 : 0000000000000000\n  x5 : 0000000000000000 x4 : 0000000000000008 x3 : 0000000000000030\n  x2 : 0000000000000008 x1 : 0000000000000000 x0 : 00000000c5c4000e\n  Call trace:\n   mlx5_fw_tracer_trigger_core_dump_general+0x58/0xe0 [mlx5_core] (P)\n   mlx5_fw_reporter_dump+0x30/0x2e0 [mlx5_core]\n   devlink_health_do_dump+0x9c/0x160\n   devlink_health_report+0x1c0/0x288\n   mlx5_fw_reporter_err_work+0xac/0xc0 [mlx5_core]\n   process_one_work+0x15c/0x3d8\n   worker_thread+0x18c/0x320\n   kthread+0x148/0x228\n   ret_from_fork+0x10/0x20\n  Code: b9400000 5ac00800 7a401800 540003ca (3940a260)\n  ---[ end trace 0000000000000000 ]---\n  Kernel panic - not syncing: Oops: Fatal exception\n  SMP: stopping secondary CPUs\n  Kernel Offset: disabled\n  CPU features: 0x000000,00078031,75fce5a1,35fffe67\n  Memory Limit: none\n  ---[ end Kernel panic - not syncing: Oops: Fatal exception ]---","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nnet/mlx5: fw_tracer, devuelve NULL en error de creación\n\nLa creación del tracer puede fallar devolviendo NULL o ERR_PTR.\nEl valor de retorno se almacena sin una verificación en el dispositivo, y los usuarios tratan ERR_PTR y NULL de la misma manera.\nEsto también causa un fallo en la lógica de volcado de memoria (core dump), que carece de la verificación de ERR_PTR y termina desreferenciándolo, como se muestra en el rastreo a continuación.\n\nCambiar la creación del tracer para que devuelva NULL solo en caso de fallo, de modo que los llamadores solo necesiten una única verificación de NULL.\n\n  Error interno: Oops: 0000000096000006 [#1] SMP\n  Módulos enlazados: mlx5_ib ib_uverbs ib_core ipv6 mlx5_core\n  CPU: 1 UID: 0 PID: 12 Comm: kworker/u16:0 No contaminado 6.19.7 #1 PREEMPT(none)\n  Cola de trabajo: mlx5_health0001:01:00.0 mlx5_fw_reporter_err_work [mlx5_core]\n  pstate: a3400009 (NzCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--)\n  pc : mlx5_fw_tracer_trigger_core_dump_general+0x58/0xe0 [mlx5_core]\n  lr : mlx5_fw_tracer_trigger_core_dump_general+0x40/0xe0 [mlx5_core]\n  sp : ffff800081cf3c40\n  x29: ffff800081cf3c90 x28: 0000000000000000 x27: 0000000000000000\n  x26: ffff000080018828 x25: 0000000000000000 x24: ffff000080304a05\n  x23: ffff800081cf3d80 x22: ffff0000847e01a0 x21: 0000000000000000\n  x20: ffff0000847e01a0 x19: ffffffffffffffa1 x18: ffff80008310bbf0\n  x17: ffff800080119650 x16: ffff80008010df54 x15: ffff80008010d4ac\n  x14: ffff800079c202e4 x13: ffff80008002fe60 x12: ffff800080119650\n  x11: ffff80008010df54 x10: ffff80008010d4ac x9 : ffff800079c203d8\n  x8 : ffff800081cf3c88 x7 : 0000000000000000 x6 : 0000000000000000\n  x5 : 0000000000000000 x4 : 0000000000000008 x3 : 0000000000000030\n  x2 : 0000000000000008 x1 : 0000000000000000 x0 : 00000000c5c4000e\n  Rastreo de llamadas:\n   mlx5_fw_tracer_trigger_core_dump_general+0x58/0xe0 [mlx5_core] (P)\n   mlx5_fw_reporter_dump+0x30/0x2e0 [mlx5_core]\n   devlink_health_do_dump+0x9c/0x160\n   devlink_health_report+0x1c0/0x288\n   mlx5_fw_reporter_err_work+0xac/0xc0 [mlx5_core]\n   process_one_work+0x15c/0x3d8\n   worker_thread+0x18c/0x320\n   kthread+0x148/0x228\n   ret_from_fork+0x10/0x20\n  Código: b9400000 5ac00800 7a401800 540003ca (3940a260)\n  ---[ fin del rastreo 0000000000000000 ]---\n  Pánico del kernel - no sincronizando: Oops: Excepción fatal\n  SMP: deteniendo CPUs secundarias\n  Desplazamiento del kernel: deshabilitado\n  Características de la CPU: 0x000000,00078031,75fce5a1,35fffe67\n  Límite de memoria: ninguno\n  ---[ fin del Pánico del kernel - no sincronizando: Oops: Excepción fatal ]---","source":"nvd"}],"published":"2026-08-22T15:33:11.488Z","modified":"2026-10-16T20:17:54.363Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"fd1483fe1f9fd45fe312adffb0faffa57446690d","fixed":"47fe0d2571e5b446a0f0b0c1d6b99f55e51f5cc0","status":"affected"},{"type":"git","introduced":"fd1483fe1f9fd45fe312adffb0faffa57446690d","fixed":"ee41ea49c4ab0e4015919f52ad23ec251d3b39d3","status":"affected"},{"type":"git","introduced":"fd1483fe1f9fd45fe312adffb0faffa57446690d","fixed":"04599570c3a18f9ae7aad36825eb46f3dcd2c4e3","status":"affected"},{"type":"git","introduced":"fd1483fe1f9fd45fe312adffb0faffa57446690d","fixed":"9a416f000285a94c1b723877547981dec8132434","status":"affected"},{"type":"git","introduced":"fd1483fe1f9fd45fe312adffb0faffa57446690d","fixed":"b1d6375b9a63c9dc7e5e780d3ea9b126fe30d6cb","status":"affected"},{"type":"git","introduced":"fd1483fe1f9fd45fe312adffb0faffa57446690d","fixed":"80094352bd40ba54a33731f9c22872493983ed6d","status":"affected"},{"type":"git","introduced":"fd1483fe1f9fd45fe312adffb0faffa57446690d","fixed":"4aafa600d93e9551c1f24e785d57cbd4adf021d5","status":"affected"},{"type":"git","introduced":"fd1483fe1f9fd45fe312adffb0faffa57446690d","fixed":"af39eb111ce6b5eba9c08513b62c4868eb7e7fd5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.152","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/47fe0d2571e5b446a0f0b0c1d6b99f55e51f5cc0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee41ea49c4ab0e4015919f52ad23ec251d3b39d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/04599570c3a18f9ae7aad36825eb46f3dcd2c4e3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a416f000285a94c1b723877547981dec8132434","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1d6375b9a63c9dc7e5e780d3ea9b126fe30d6cb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80094352bd40ba54a33731f9c22872493983ed6d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4aafa600d93e9551c1f24e785d57cbd4adf021d5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af39eb111ce6b5eba9c08513b62c4868eb7e7fd5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-16T19:15:32.943Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74717","url":"https://www.cve.org/CVERecord?id=CVE-2026-74717","licence":"CVE Terms of Use","modified":"2026-10-16T19:16:11.661Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74717","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74717","licence":"Public domain","modified":"2026-10-16T20:17:54.363Z"}],"updatedAt":"2026-11-25T22:59:34.948Z","epss":{"score":0.00501,"percentile":0.44498,"date":"2026-12-01T12:00:22.000Z"}}