{"id":"CVE-2026-74691","aliases":["CVE-2026-74691"],"related":[],"kind":"vulnerability","state":"published","title":"net: thunderbolt: Tear down DMA paths before stopping the rings","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: thunderbolt: Tear down DMA paths before stopping the rings\n\ntbnet_tear_down() stops both rings and frees their frame buffers before\ncalling tb_xdomain_disable_paths().  tb_ring_stop() zeroes the ring's\ndescriptor base and tbnet_free_buffers() unmaps and frees the pages the\nframes sit in, so by the time __tb_path_deactivate_hop() polls the hop's\n'pending' bit, anything still in flight has nowhere to drain to.\n\nThe teardown sequence has been in this order since the driver was added.\nThe setup path has not: commit ff7cd07f3064 (\"net: thunderbolt: Enable\nDMA paths only after rings are enabled\") moved the path enable to the end\nof tbnet_connected_work() and documented why:\n\n\t/* Both logins successful so enable the rings, high-speed DMA\n\t * paths and start the network device queue.\n\t *\n\t * Note we enable the DMA paths last to make sure we have primed\n\t * the Rx ring before any incoming packets are allowed to\n\t * arrive.\n\t */\n\nTeardown was never updated to match, so the rings and the paths now come\ndown in the same order they go up instead of in reverse.\n\nOn an ASMedia ASM4242 host router the 'pending' bit then never clears:\nevery teardown burns the full 500 ms timeout and\n__tb_path_deactivate_hop() returns -ETIMEDOUT.  Raising the timeout to\n5 s does not help, so the hop is not slow to drain, it never drains\nat all.\n\nThe failure is invisible above the thunderbolt core.\n__tb_path_deactivate_hops() is void and only calls tb_port_warn();\ntb_path_deactivate(), tb_tunnel_deactivate() and\n__tb_disconnect_xdomain_paths() are void as well, and\ntb_disconnect_xdomain_paths() ends in an unconditional \"return 0\".  So\ntb_xdomain_disable_paths() reports success and the netdev_warn() below\nit never fires.  Repeated teardowns eventually take the XDomain control\nchannel down, after which the peer node is gone and only a power cycle\nbrings the controller back.\n\nDeactivating the paths first fixes it.  Measured with kretprobes on a\nstock v6.17 tree with no other patches applied, on a link that was up\nand had just carried traffic:\n\n  before: __tb_path_deactivate_hop() returns 0 for the first hop, then\n          -ETIMEDOUT for the second 500335 us later\n  after:  0 for both, 525 us apart\n\nAlternating the two orderings ABBA over three load levels, four\nteardowns per arm: every teardown failed before the change (21 of 21\nthat ran), none failed after (0 of 24).  The before arms ran short\nbecause the link died partway through.  The same split shows up when\nthe interface is enslaved to a bond instead of just brought down, which\nis how I ran into this in the first place.  Throughput and latency after\nthe change are unchanged.\n\nHosts whose routers drain the hop despite the stale descriptor base see\nno functional difference, since the paths end up deactivated either way.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: thunderbolt: Tear down DMA paths before stopping the rings\n\ntbnet_tear_down() stops both rings and frees their frame buffers before\ncalling tb_xdomain_disable_paths().  tb_ring_stop() zeroes the ring's\ndescriptor base and tbnet_free_buffers() unmaps and frees the pages the\nframes sit in, so by the time __tb_path_deactivate_hop() polls the hop's\n'pending' bit, anything still in flight has nowhere to drain to.\n\nThe teardown sequence has been in this order since the driver was added.\nThe setup path has not: commit ff7cd07f3064 (\"net: thunderbolt: Enable\nDMA paths only after rings are enabled\") moved the path enable to the end\nof tbnet_connected_work() and documented why:\n\n\t/* Both logins successful so enable the rings, high-speed DMA\n\t * paths and start the network device queue.\n\t *\n\t * Note we enable the DMA paths last to make sure we have primed\n\t * the Rx ring before any incoming packets are allowed to\n\t * arrive.\n\t */\n\nTeardown was never updated to match, so the rings and the paths now come\ndown in the same order they go up instead of in reverse.\n\nOn an ASMedia ASM4242 host router the 'pending' bit then never clears:\nevery teardown burns the full 500 ms timeout and\n__tb_path_deactivate_hop() returns -ETIMEDOUT.  Raising the timeout to\n5 s does not help, so the hop is not slow to drain, it never drains\nat all.\n\nThe failure is invisible above the thunderbolt core.\n__tb_path_deactivate_hops() is void and only calls tb_port_warn();\ntb_path_deactivate(), tb_tunnel_deactivate() and\n__tb_disconnect_xdomain_paths() are void as well, and\ntb_disconnect_xdomain_paths() ends in an unconditional \"return 0\".  So\ntb_xdomain_disable_paths() reports success and the netdev_warn() below\nit never fires.  Repeated teardowns eventually take the XDomain control\nchannel down, after which the peer node is gone and only a power cycle\nbrings the controller back.\n\nDeactivating the paths first fixes it.  Measured with kretprobes on a\nstock v6.17 tree with no other patches applied, on a link that was up\nand had just carried traffic:\n\n  before: __tb_path_deactivate_hop() returns 0 for the first hop, then\n          -ETIMEDOUT for the second 500335 us later\n  after:  0 for both, 525 us apart\n\nAlternating the two orderings ABBA over three load levels, four\nteardowns per arm: every teardown failed before the change (21 of 21\nthat ran), none failed after (0 of 24).  The before arms ran short\nbecause the link died partway through.  The same split shows up when\nthe interface is enslaved to a bond instead of just brought down, which\nis how I ran into this in the first place.  Throughput and latency after\nthe change are unchanged.\n\nHosts whose routers drain the hop despite the stale descriptor base see\nno functional difference, since the paths end up deactivated either way.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: thunderbolt: Desactivar las rutas DMA antes de detener los anillos\n\ntbnet_tear_down() detiene ambos anillos y libera sus búferes de trama antes de llamar a tb_xdomain_disable_paths(). tb_ring_stop() pone a cero la base del descriptor del anillo y tbnet_free_buffers() desmapea y libera las páginas en las que residen las tramas, así que para cuando __tb_path_deactivate_hop() sondea el bit 'pending' del salto, cualquier cosa aún en tránsito no tiene a dónde drenar.\n\nLa secuencia de desactivación ha estado en este orden desde que se añadió el controlador. La ruta de configuración no: el commit ff7cd07f3064 ('net: thunderbolt: Habilitar rutas DMA solo después de que los anillos estén habilitados') movió la habilitación de la ruta al final de tbnet_connected_work() y documentó por qué:\n\n\t/* Ambos inicios de sesión exitosos, así que habilite los anillos, las rutas DMA\n\t * de alta velocidad y arranque la cola del dispositivo de red.\n\t *\n\t * Tenga en cuenta que habilitamos las rutas DMA al final para asegurarnos de haber cebado\n\t * el anillo Rx antes de que se permita la llegada de cualquier paquete\n\t * entrante.\n\t */\n\nLa desactivación nunca se actualizó para coincidir, así que los anillos y las rutas ahora se desactivan en el mismo orden en que se activan en lugar de en orden inverso.\n\nEn un router host ASMedia ASM4242, el bit 'pending' nunca se borra: cada desactivación consume el tiempo de espera completo de 500 ms y __tb_path_deactivate_hop() devuelve -ETIMEDOUT. Aumentar el tiempo de espera a 5 s no ayuda, así que el salto no es lento para drenar, nunca drena en absoluto.\n\nEl fallo es invisible por encima del núcleo thunderbolt. __tb_path_deactivate_hops() es void y solo llama a tb_port_warn(); tb_path_deactivate(), tb_tunnel_deactivate() y __tb_disconnect_xdomain_paths() también son void, y tb_disconnect_xdomain_paths() termina en un 'return 0' incondicional. Así que tb_xdomain_disable_paths() reporta éxito y el netdev_warn() debajo de él nunca se activa. Desactivaciones repetidas eventualmente desactivan el canal de control XDomain, después de lo cual el nodo par desaparece y solo un ciclo de encendido devuelve el controlador.\n\nDesactivar las rutas primero lo soluciona. Medido con kretprobes en un árbol v6.17 estándar sin otros parches aplicados, en un enlace que estaba activo y acababa de transportar tráfico:\n\n  antes: __tb_path_deactivate_hop() devuelve 0 para el primer salto, luego -ETIMEDOUT para el segundo 500335 us después\n  después: 0 para ambos, con 525 us de diferencia\n\nAlternando los dos órdenes ABBA sobre tres niveles de carga, cuatro desactivaciones por brazo: cada desactivación falló antes del cambio (21 de 21 que se ejecutaron), ninguna falló después (0 de 24). Los brazos 'antes' se acortaron porque el enlace murió a mitad de camino. La misma división aparece cuando la interfaz se esclaviza a un bond en lugar de simplemente desactivarse, que es como me encontré con esto en primer lugar. El rendimiento y la latencia después del cambio no han cambiado.\n\nLos hosts cuyos routers drenan el salto a pesar de la base de descriptor obsoleta no ven ninguna diferencia funcional, ya que las rutas terminan desactivadas de cualquier manera.","source":"nvd"}],"published":"2026-08-22T15:32:55.258Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e","fixed":"7cce39109206bc5497e0953806563644b88bfc44","status":"affected"},{"type":"git","introduced":"e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e","fixed":"0da9a6d27155ad072dd76db8cd637feead99a0e0","status":"affected"},{"type":"git","introduced":"e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e","fixed":"b5a21615f627c48dafaa6ef82a34a5b97a4352aa","status":"affected"},{"type":"git","introduced":"e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e","fixed":"103a9b663ac1cacb8465aeff18f84a247154a562","status":"affected"},{"type":"git","introduced":"e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e","fixed":"4dd71cb0d23d40cb58fe4261c7bd183dca66caa0","status":"affected"},{"type":"git","introduced":"e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e","fixed":"9a482b2b117e5fa656b6d24fc01799e8ac2d4368","status":"affected"},{"type":"git","introduced":"e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e","fixed":"68bf02b6b4ad3f748c6db71fd77b6c0402d252f4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","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/7cce39109206bc5497e0953806563644b88bfc44","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0da9a6d27155ad072dd76db8cd637feead99a0e0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5a21615f627c48dafaa6ef82a34a5b97a4352aa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/103a9b663ac1cacb8465aeff18f84a247154a562","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4dd71cb0d23d40cb58fe4261c7bd183dca66caa0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a482b2b117e5fa656b6d24fc01799e8ac2d4368","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68bf02b6b4ad3f748c6db71fd77b6c0402d252f4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74691","url":"https://www.cve.org/CVERecord?id=CVE-2026-74691","licence":"CVE Terms of Use","modified":"2026-08-25T05:41:36.384Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74691","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74691","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:34.936Z","epss":{"score":0.00256,"percentile":0.18441,"date":"2026-12-01T12:00:22.000Z"}}