{"id":"CVE-2026-99547","aliases":["CVE-2026-99547"],"related":[],"kind":"vulnerability","state":"published","title":"thunderbolt: Do not RPM complete unrelated subtrees on unplug","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nthunderbolt: Do not RPM complete unrelated subtrees on unplug\n\nWhen a Thunderbolt device is unplugged, that switch and every switch\nsubsequent to it on the bus device list is `complete()`d, not just its\nchild devices. In the case of multiple domains, it may cause, eg, an\nattempt to `complete()` the uninitialized domain 1 root switch RPM\ncompletion on unplug of a switch from domain 0 (though ordering is not\nguaranteed numerically sorted).\n\nI initially noticed this issue on a Dell XPS9720 when the system would\nseem to sporadically not wake after unplugging a Thunderbolt dock. I\ntried multiple kernel versions including v7.2.7 and v7.3-rc4 to see if\nthat resolved the issue, but the issue persisted. Eventually I found\nthat I could consistently generate a kernel Oops reporting a page fault\nat 0xffff_ffff_ffff_fff8 on unplug from one side of the laptop and went\nbug hunting. I became suspicious of the `bus_for_each_dev()` walk that I\nultimately ended up changing. To confirm this issue, I did an eBPF trace\nof `bus_for_each_dev()`, `complete_rpm()`, and `complete()` while\nunplugging in a variety of situations and found that an unplug from\ndomain 0 tries to `complete_rpm()` domain 1's switch, whose RPM\ncompletion is not initialized and thus is holding a null wait-list\npointer, triggering the page fault.\n\nHere are the key sections of that eBPF trace. Note that HEAD denotes the\ncompletion's own wait-list HEAD:\n\n```\nRESCAN_ENTER domain=0\n\nCOMPLETE rescan_domain=0 target=0-1 target_domain=0\n         route=0x1 parent=0-0 unplugged=1\nCOMPLETION done=0 head=HEAD next=HEAD prev=HEAD\n\nBUS_WALK domain=0 start=0-1 callback=complete_rpm\nCALLBACK_ENTER rescan_domain=0 dev=1-0 parent=domain1 is_switch=1\n\nCOMPLETE rescan_domain=0 target=1-0 target_domain=1\n         route=0x0 parent=domain1 unplugged=0\nCOMPLETION done=0 head=HEAD next=0 prev=0\n\n        complete+5\n        complete_rpm+43\n        bus_for_each_dev+133\n        icm_free_unplugged_children+250\n        icm_rescan_work+42\n```\n\nThis patch gates the `complete()` on an additional condition - that the\nThunderbolt domain matches the domain of the device that was unplugged.\n\nI only have a single system with multiple Thunderbolt domains - the Dell\nXPS9720. I am consistently able to reproduce the Oops on that system.\nSince running with this patch, I have not seen the Oops reoccur. I have\nalso tested it on a Thinkpad X1-Gen12, and that system boots and runs\nwell with it, but it only has a single Thunderbolt domain, so it does\nnot exercise the multi-domain failure case.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nthunderbolt: Do not RPM complete unrelated subtrees on unplug\n\nWhen a Thunderbolt device is unplugged, that switch and every switch\nsubsequent to it on the bus device list is `complete()`d, not just its\nchild devices. In the case of multiple domains, it may cause, eg, an\nattempt to `complete()` the uninitialized domain 1 root switch RPM\ncompletion on unplug of a switch from domain 0 (though ordering is not\nguaranteed numerically sorted).\n\nI initially noticed this issue on a Dell XPS9720 when the system would\nseem to sporadically not wake after unplugging a Thunderbolt dock. I\ntried multiple kernel versions including v7.2.7 and v7.3-rc4 to see if\nthat resolved the issue, but the issue persisted. Eventually I found\nthat I could consistently generate a kernel Oops reporting a page fault\nat 0xffff_ffff_ffff_fff8 on unplug from one side of the laptop and went\nbug hunting. I became suspicious of the `bus_for_each_dev()` walk that I\nultimately ended up changing. To confirm this issue, I did an eBPF trace\nof `bus_for_each_dev()`, `complete_rpm()`, and `complete()` while\nunplugging in a variety of situations and found that an unplug from\ndomain 0 tries to `complete_rpm()` domain 1's switch, whose RPM\ncompletion is not initialized and thus is holding a null wait-list\npointer, triggering the page fault.\n\nHere are the key sections of that eBPF trace. Note that HEAD denotes the\ncompletion's own wait-list HEAD:\n\n```\nRESCAN_ENTER domain=0\n\nCOMPLETE rescan_domain=0 target=0-1 target_domain=0\n         route=0x1 parent=0-0 unplugged=1\nCOMPLETION done=0 head=HEAD next=HEAD prev=HEAD\n\nBUS_WALK domain=0 start=0-1 callback=complete_rpm\nCALLBACK_ENTER rescan_domain=0 dev=1-0 parent=domain1 is_switch=1\n\nCOMPLETE rescan_domain=0 target=1-0 target_domain=1\n         route=0x0 parent=domain1 unplugged=0\nCOMPLETION done=0 head=HEAD next=0 prev=0\n\n        complete+5\n        complete_rpm+43\n        bus_for_each_dev+133\n        icm_free_unplugged_children+250\n        icm_rescan_work+42\n```\n\nThis patch gates the `complete()` on an additional condition - that the\nThunderbolt domain matches the domain of the device that was unplugged.\n\nI only have a single system with multiple Thunderbolt domains - the Dell\nXPS9720. I am consistently able to reproduce the Oops on that system.\nSince running with this patch, I have not seen the Oops reoccur. I have\nalso tested it on a Thinkpad X1-Gen12, and that system boots and runs\nwell with it, but it only has a single Thunderbolt domain, so it does\nnot exercise the multi-domain failure case.","source":"cvelist"}],"published":"2026-11-19T14:45:08.097Z","modified":"2026-11-23T08:17:56.780Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4f7c2e0d8765a0266b920c66ffc495fde44c1ec8","fixed":"30442b8bb43f23545169ef2ad0901505328917fc","status":"affected"},{"type":"git","introduced":"4f7c2e0d8765a0266b920c66ffc495fde44c1ec8","fixed":"f631264cb36f6e103a1d6f793384fab7479eab70","status":"affected"},{"type":"git","introduced":"4f7c2e0d8765a0266b920c66ffc495fde44c1ec8","fixed":"48c44c2609b7b263576584b0b2c4ba5b6fdcd8e6","status":"affected"},{"type":"git","introduced":"4f7c2e0d8765a0266b920c66ffc495fde44c1ec8","fixed":"4b9f270fa78fd82c181bbb4d8ed94ee4fac2fc5f","status":"affected"},{"type":"git","introduced":"4f7c2e0d8765a0266b920c66ffc495fde44c1ec8","fixed":"a7f354751b05ead5538176deadb9bc5b1fda0a3c","status":"affected"},{"type":"git","introduced":"4f7c2e0d8765a0266b920c66ffc495fde44c1ec8","fixed":"85a8777c7ec5e17b999b4c9eb0c8cbf4ab936998","status":"affected"},{"type":"git","introduced":"4f7c2e0d8765a0266b920c66ffc495fde44c1ec8","fixed":"e45356d83adce72fd99f57763eb3456c7c560857","status":"affected"},{"type":"git","introduced":"4f7c2e0d8765a0266b920c66ffc495fde44c1ec8","fixed":"96a8479804e3f7af43e639e9df39f562f1a75fd5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/30442b8bb43f23545169ef2ad0901505328917fc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f631264cb36f6e103a1d6f793384fab7479eab70","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48c44c2609b7b263576584b0b2c4ba5b6fdcd8e6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4b9f270fa78fd82c181bbb4d8ed94ee4fac2fc5f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7f354751b05ead5538176deadb9bc5b1fda0a3c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85a8777c7ec5e17b999b4c9eb0c8cbf4ab936998","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e45356d83adce72fd99f57763eb3456c7c560857","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/96a8479804e3f7af43e639e9df39f562f1a75fd5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99547","url":"https://www.cve.org/CVERecord?id=CVE-2026-99547","licence":"CVE Terms of Use","modified":"2026-11-23T08:04:11.660Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99547","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99547","licence":"Public domain","modified":"2026-11-23T08:17:56.780Z"}],"updatedAt":"2026-11-25T22:59:52.111Z","epss":{"score":0.00202,"percentile":0.10658,"date":"2026-12-01T12:00:22.000Z"}}