Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98688 Overview
CVE-2026-98688 is a race condition in the Linux kernel Thunderbolt subsystem that leads to a NULL pointer dereference in tb_remove_work(). The flaw was introduced by commit a8937f35cf39 ("thunderbolt: Remove XDomain from the bus without holding tb->lock"), which moved tb_free_unplugged_xdomains() outside the &tb->lock critical section. When tb_domain_remove() runs concurrently with a delayed tb_remove_work() callback, it can set tb->root_switch to NULL before the deferred work dereferences it. The result is a kernel NULL pointer dereference and likely system crash. The issue was found by the Linux Verification Center using the Svace static analysis tool.
Critical Impact
A race between tb_remove_work() and tb_domain_remove() dereferences a NULL tb->root_switch pointer, causing a kernel oops and local denial of service on affected systems.
Affected Products
- Linux kernel (Thunderbolt subsystem)
- Kernel builds containing commit a8937f35cf39
- Distributions shipping the affected stable kernel series prior to the fix
Discovery Timeline
- 2026-10-18 - CVE-2026-98688 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98688
Vulnerability Analysis
The Thunderbolt Connection Manager (TCM) schedules a delayed work item, remove_work, that invokes tb_remove_work(). This callback acquires &tb->lock and calls tb_free_unplugged_xdomains(tb->root_switch) without validating that tb->root_switch is non-NULL. In parallel, tb_domain_remove() holds &tb->lock, calls tb_stop() which only invokes cancel_delayed_work() rather than cancel_delayed_work_sync(), then calls tb_switch_remove(tb->root_switch) and assigns tb->root_switch = NULL before releasing the lock. Because cancel_delayed_work() does not wait for an already-running callback to complete, tb_remove_work() can resume after the lock is released and dereference a NULL root switch pointer. This matches the [CWE-476] Null Pointer Dereference and [CWE-362] Concurrent Execution Race Condition patterns.
Root Cause
The root cause is incorrect lock-scope reasoning in commit a8937f35cf39. That change separated topology removal from bus unregistration, but tb_free_unplugged_xdomains() belongs to the former category and calls tb_xdomain_remove(), which requires &tb->lock to be held and tb->root_switch to be valid. Moving the call outside the guarded section removed the implicit precondition check on tb->root_switch.
Attack Vector
Triggering the race requires local activity that causes a Thunderbolt domain teardown to overlap with an unplug-driven delayed work execution. Exploitation potential is limited to local denial of service through a kernel oops. No evidence of remote exploitation, code execution, or privilege escalation has been published, and no exploit code is publicly available.
See the upstream fix commits for the authoritative description: Kernel Git Commit 2f4cd43 and Kernel Git Commit 4310c6b.
Detection Methods for CVE-2026-98688
Indicators of Compromise
- Kernel oops or panic messages referencing tb_remove_work, tb_free_unplugged_xdomains, or tb_xdomain_remove in dmesg or /var/log/kern.log.
- Unexpected Thunderbolt subsystem crashes correlated with device unplug or domain removal events.
Detection Strategies
- Inventory running kernel versions and compare against the fixed stable release containing commits 2f4cd43 and 4310c6b.
- Run static analyzers such as Svace or Smatch against custom kernel builds to flag similar missing NULL checks on tb->root_switch after unlocked sections.
Monitoring Recommendations
- Centralize kernel ring buffer and journald logs and alert on NULL pointer dereference stack traces that include Thunderbolt symbols.
- Track crash telemetry on endpoints with Thunderbolt hardware, particularly laptops that frequently dock and undock.
How to Mitigate CVE-2026-98688
Immediate Actions Required
- Apply the upstream stable kernel update that includes commits 2f4cd43faa9d and 4310c6b8e75d.
- Rebuild and reboot affected systems after patching to ensure the fixed Thunderbolt module is loaded.
- Prioritize patching endpoints with Thunderbolt docks or external GPUs where domain tear-down occurs frequently.
Patch Information
The fix restores the lock discipline and NULL check around tb_free_unplugged_xdomains(). Reference the upstream commits: Kernel Git Commit 2f4cd43 and Kernel Git Commit 4310c6b. Distribution vendors are expected to backport these commits into their supported stable kernel series.
Workarounds
- Where patching is not immediately possible, blacklist the thunderbolt kernel module on systems that do not require Thunderbolt connectivity.
- Avoid hot-plugging Thunderbolt devices during administrative teardown operations until the patched kernel is deployed.
# Blacklist the thunderbolt module as a temporary mitigation
echo 'blacklist thunderbolt' | sudo tee /etc/modprobe.d/disable-thunderbolt.conf
sudo update-initramfs -u
sudo reboot
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

