# CVE-2026-98688: thunderbolt: Fix NULL dereference in tb\_remove\_work()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-18T15:46:02.231Z
- **Modified:** 2026-10-19T10:19:33.190Z

## Who should check

- Anyone running Linux \>= a8937f35cf39c39c64325aa84d0463d866850857, \< 2f4cd43faa9d6470b30a9fbcbac6584db8108c1f; \>= a8937f35cf39c39c64325aa84d0463d866850857, \< 4310c6b8e75d6a47f7548e5948fbe6318aa4440a; 3e9e823810b9a51f0bee9ed6e3d90df70484ff8d; 9363cd4977260bf7f211feee54f85858bba2320c; \>= 5.10.266, \< 5.11; \>= 5.15.217, \< 5.16
- Anyone running Linux 7.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

thunderbolt: Fix NULL dereference in tb\_remove\_work()

There is a slight race between tb\_remove\_work() and tb\_domain\_remove()
which leads to dereferencing a NULL tb-\>root\_switch pointer inside
tb\_free\_unplugged\_xdomains():

        Thread A                            Thread B

  tb\_remove\_work()
                                    tb\_domain\_remove()
                                      mutex\_lock(&tb-\>lock)
                                      tb\_stop()
                                        /\* doesn't cancel a running callback \*/
                                        cancel\_delayed\_work(&tcm-\>remove\_work)
                                        ...
                                        tb\_switch\_remove(tb-\>root\_switch)
                                        tb-\>root\_switch = NULL
                                      mutex\_unlock(&tb-\>lock)
    mutex\_lock(&tb-\>lock)
    ...
    /\* without checking -\>root\_switch \*/
    tb\_free\_unplugged\_xdomains(tb-\>root\_switch)
    mutex\_unlock(&tb-\>lock)

Commit a8937f35cf39 ("thunderbolt: Remove XDomain from the bus without
holding tb-\>lock") doesn't seem right to move tb\_free\_unplugged\_xdomains()
out of the &tb-\>lock section and the check for tb-\>root\_switch, in
particular.  It states:

  For this reason separate removing the XDomain from the topology data
  structures (where we need the lock) from unregistering the device from
  the bus (where remove callbacks of the drivers are being called).

tb\_free\_unplugged\_xdomains() belongs to the former group of functions
requiring the lock.  And it also calls tb\_xdomain\_remove() which should
only be called with &tb-\>lock held.

Found by Linux Verification Center (linuxtesting.org) with Svace static
analysis tool.

## Affected and fixed versions

- Linux: \>= a8937f35cf39c39c64325aa84d0463d866850857, \< 2f4cd43faa9d6470b30a9fbcbac6584db8108c1f; \>= a8937f35cf39c39c64325aa84d0463d866850857, \< 4310c6b8e75d6a47f7548e5948fbe6318aa4440a; 3e9e823810b9a51f0bee9ed6e3d90df70484ff8d; 9363cd4977260bf7f211feee54f85858bba2320c; \>= 5.10.266, \< 5.11; \>= 5.15.217, \< 5.16 (cvelist)
- Linux: 7.2 (cvelist)

## Mitigation

- Upgrade Linux to 5.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98688. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98688.md
Affected: Linux >= a8937f35cf39c39c64325aa84d0463d866850857, < 2f4cd43faa9d6470b30a9fbcbac6584db8108c1f; >= a8937f35cf39c39c64325aa84d0463d866850857, < 4310c6b8e75d6a47f7548e5948fbe6318aa4440a; 3e9e823810b9a51f0bee9ed6e3d90df70484ff8d; 9363cd4977260bf7f211feee54f85858bba2320c; >= 5.10.266, < 5.11; >= 5.15.21…
Fixed in: Linux 2f4cd43faa9d6470b30a9fbcbac6584db8108c1f, Linux 4310c6b8e75d6a47f7548e5948fbe6318aa4440a, Linux 5.11, Linux 5.16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98688 being exploited?

There is no confirmed exploitation: CVE-2026-98688 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98688?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98688?

Linux \>= a8937f35cf39c39c64325aa84d0463d866850857, \< 2f4cd43faa9d6470b30a9fbcbac6584db8108c1f; \>= a8937f35cf39c39c64325aa84d0463d866850857, \< 4310c6b8e75d6a47f7548e5948fbe6318aa4440a; 3e9e823810b9a51f0bee9ed6e3d90df70484ff8d; 9363cd4977260bf7f211feee54f85858bba2320c; \>= 5.10.266, \< 5.11; \>= 5.15.217, \< 5.16; Linux 7.2.

### Is there a fix for CVE-2026-98688?

Yes. Fixed in Linux 2f4cd43faa9d6470b30a9fbcbac6584db8108c1f, Linux 4310c6b8e75d6a47f7548e5948fbe6318aa4440a, Linux 5.11, Linux 5.16. Upgrade Linux to 5.16 or later.

### How do I check if I'm affected by CVE-2026-98688?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/2f4cd43faa9d6470b30a9fbcbac6584db8108c1f>
- other: <https://git.kernel.org/stable/c/4310c6b8e75d6a47f7548e5948fbe6318aa4440a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98688>

HTML: <https://flawdb.com/CVE-2026-98688> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98688>
