{"id":11265,"date":"2026-09-04T18:53:07","date_gmt":"2026-09-04T10:53:07","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-74691"},"modified":"2026-09-04T18:53:07","modified_gmt":"2026-09-04T10:53:07","slug":"cve-2026-74691","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-74691","title":{"rendered":"CVE-2026-74691 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nnet: thunderbolt: Tea"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net: thunderbolt: Tear down DMA paths before stopping the rings<\/p>\n<p>tbnet_tear_down() stops both rings and frees their frame buffers before<br \/>\ncalling tb_xdomain_disable_paths().  tb_ring_stop() zeroes the ring&#8217;s<br \/>\ndescriptor base and tbnet_free_buffers() unmaps and frees the pages the<br \/>\nframes sit in, so by the time __tb_path_deactivate_hop() polls the hop&#8217;s<br \/>\n&#8216;pending&#8217; bit, anything still in flight has nowhere to drain to.<\/p>\n<p>The teardown sequence has been in this order since the driver was added.<br \/>\nThe setup path has not: commit ff7cd07f3064 (&#8220;net: thunderbolt: Enable<br \/>\nDMA paths only after rings are enabled&#8221;) moved the path enable to the end<br \/>\nof tbnet_connected_work() and documented why:<\/p>\n<p>\t\/* Both logins successful so enable the rings, high-speed DMA<br \/>\n\t * paths and start the network device queue.<br \/>\n\t *<br \/>\n\t * Note we enable the DMA paths last to make sure we have primed<br \/>\n\t * the Rx ring before any incoming packets are allowed to<br \/>\n\t * arrive.<br \/>\n\t *\/<\/p>\n<p>Teardown was never updated to match, so the rings and the paths now come<br \/>\ndown in the same order they go up instead of in reverse.<\/p>\n<p>On an ASMedia ASM4242 host router the &#8216;pending&#8217; bit then never clears:<br \/>\nevery teardown burns the full 500 ms timeout and<br \/>\n__tb_path_deactivate_hop() returns -ETIMEDOUT.  Raising the timeout to<br \/>\n5 s does not help, so the hop is not slow to drain, it never drains<br \/>\nat all.<\/p>\n<p>The failure is invisible above the thunderbolt core.<br \/>\n__tb_path_deactivate_hops() is void and only calls tb_port_warn();<br \/>\ntb_path_deactivate(), tb_tunnel_deactivate() and<br \/>\n__tb_disconnect_xdomain_paths() are void as well, and<br \/>\ntb_disconnect_xdomain_paths() ends in an unconditional &#8220;return 0&#8221;.  So<br \/>\ntb_xdomain_disable_paths() reports success and the netdev_warn() below<br \/>\nit never fires.  Repeated teardowns eventually take the XDomain control<br \/>\nchannel down, after which the peer node is gone and only a power cycle<br \/>\nbrings the controller back.<\/p>\n<p>Deactivating the paths first fixes it.  Measured with kretprobes on a<br \/>\nstock v6.17 tree with no other patches applied, on a link that was up<br \/>\nand had just carried traffic:<\/p>\n<p>  before: __tb_path_deactivate_hop() returns 0 for the first hop, then<br \/>\n          -ETIMEDOUT for the second 500335 us later<br \/>\n  after:  0 for both, 525 us apart<\/p>\n<p>Alternating the two orderings ABBA over three load levels, four<br \/>\nteardowns per arm: every teardown failed before the change (21 of 21<br \/>\nthat ran), none failed after (0 of 24).  The before arms ran short<br \/>\nbecause the link died partway through.  The same split shows up when<br \/>\nthe interface is enslaved to a bond instead of just brought down, which<br \/>\nis how I ran into this in the first place.  Throughput and latency after<br \/>\nthe change are unchanged.<\/p>\n<p>Hosts whose routers drain the hop despite the stale descriptor base see<br \/>\nno functional difference, since the paths end up deactivated either way.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net: thunderbolt: Tear down DMA paths before stopping the rings<\/p>\n<p>tbnet_tear_down() stops both rings and frees their frame buffers b<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-11265","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/11265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}