{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "a8937f35cf39c39c64325aa84d0463d866850857"
            },
            {
              "fixed": "2f4cd43faa9d6470b30a9fbcbac6584db8108c1f"
            },
            {
              "fixed": "4310c6b8e75d6a47f7548e5948fbe6318aa4440a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5.10.266"
            },
            {
              "fixed": "5.11"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5.15.217"
            },
            {
              "fixed": "5.16"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "3e9e823810b9a51f0bee9ed6e3d90df70484ff8d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "9363cd4977260bf7f211feee54f85858bba2320c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.2.0"
            },
            {
              "fixed": "7.2.10"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98688.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nthunderbolt: Fix NULL dereference in tb_remove_work()\n\nThere is a slight race between tb_remove_work() and tb_domain_remove()\nwhich leads to dereferencing a NULL tb-\u003eroot_switch pointer inside\ntb_free_unplugged_xdomains():\n\n        Thread A                            Thread B\n\n  tb_remove_work()\n                                    tb_domain_remove()\n                                      mutex_lock(\u0026tb-\u003elock)\n                                      tb_stop()\n                                        /* doesn't cancel a running callback */\n                                        cancel_delayed_work(\u0026tcm-\u003eremove_work)\n                                        ...\n                                        tb_switch_remove(tb-\u003eroot_switch)\n                                        tb-\u003eroot_switch = NULL\n                                      mutex_unlock(\u0026tb-\u003elock)\n    mutex_lock(\u0026tb-\u003elock)\n    ...\n    /* without checking -\u003eroot_switch */\n    tb_free_unplugged_xdomains(tb-\u003eroot_switch)\n    mutex_unlock(\u0026tb-\u003elock)\n\nCommit a8937f35cf39 (\"thunderbolt: Remove XDomain from the bus without\nholding tb-\u003elock\") doesn't seem right to move tb_free_unplugged_xdomains()\nout of the \u0026tb-\u003elock section and the check for tb-\u003eroot_switch, in\nparticular.  It states:\n\n  For this reason separate removing the XDomain from the topology data\n  structures (where we need the lock) from unregistering the device from\n  the bus (where remove callbacks of the drivers are being called).\n\ntb_free_unplugged_xdomains() belongs to the former group of functions\nrequiring the lock.  And it also calls tb_xdomain_remove() which should\nonly be called with \u0026tb-\u003elock held.\n\nFound by Linux Verification Center (linuxtesting.org) with Svace static\nanalysis tool.",
  "id": "CVE-2026-98688",
  "modified": "2026-10-20T02:30:48.634634982Z",
  "published": "2026-10-18T15:46:02.231Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2f4cd43faa9d6470b30a9fbcbac6584db8108c1f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4310c6b8e75d6a47f7548e5948fbe6318aa4440a"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98688.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98688"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "thunderbolt: Fix NULL dereference in tb_remove_work()"
}