Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B112237F30C for ; Sun, 18 Oct 2026 15:49:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338577; cv=none; b=BWt0VxVwVWpNcO++MQNWwylcpSr3CO3ZgE5FHZrQwGizRpTDg6gq6jgTvZYQ05svg8juSUqxsxNOacWCwmgIb7Rqg1MbUIJwNh0OcFtmb++9BADY9ebfef4Ki7Zy4U/qnATp71Ru8342N28KlmVVhlKKAKWcE4OqvF7twenuaIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338577; c=relaxed/simple; bh=4Bam+NKqAfkJfp7MZ9C7LnBZvinswqSty4imrrjoY2I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ReCSjec9FjJzPp4aq39OlkzCDmp4iQIIlxAtvv8Hu29qbz1rnmTSlhl3ou8ILa3t9jXQ0xSXRCK67Ga7fti3bMhkisdkpeE2jxy1GADzZJqmB+LwOmujB8Ktu0RGTioBwmDCLAG53rUpHctG1tRsVv9L2WfL7hh6Nv3CVxHYKEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cqHXx0CA; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cqHXx0CA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F8041F000C4; Sun, 18 Oct 2026 15:49:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792338576; bh=Ga1xas2vvSCP68j4YZEZaUxNWnqa3Yfh4zu0hG9zvhM=; h=From:To:Cc:Subject:Date:Reply-To; b=cqHXx0CAY5wamFVvyUhL+VxgUshc21LNcsRgvQoVj3dStmuOlAEkYEXPUkqAIDxqu AC7gEai5KNkAx5Rch1gbKxnQaf9HR7uRaAEPEK3QXHKGFIsxP+ZUk5MqAtV39J7dEq G66uigW841qKVj0EnFY3wyeP1xxp8mucUotUfSEY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98688: thunderbolt: Fix NULL dereference in tb_remove_work() Date: Sun, 18 Oct 2026 17:44:23 +0200 Message-ID: <2026101802-CVE-2026-98688-8e6f@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3641; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=H0BnslQCFVYXc6xqRYn+VQc1/NG0ypnI6JzcYuSndtQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXjot75wnq/pN7ovB9+SWsr9v20qf9HDFT/p+LProj xQj/3qejlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI9QmGOTz9fZKhe24nbz+/ 9N1KHsHUP0f6PjHM4Xr1h21hkoSvoJDl1P78y+89LY85AQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-98688 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit a8937f35cf39c39c64325aa84d0463d866850857 and fixed in 7.2.10 with commit 2f4cd43faa9d6470b30a9fbcbac6584db8108c1f Issue introduced in 7.2 with commit a8937f35cf39c39c64325aa84d0463d866850857 and fixed in 7.3-rc6 with commit 4310c6b8e75d6a47f7548e5948fbe6318aa4440a Issue introduced in 5.10.266 with commit 3e9e823810b9a51f0bee9ed6e3d90df70484ff8d Issue introduced in 5.15.217 with commit 9363cd4977260bf7f211feee54f85858bba2320c Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98688 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/thunderbolt/tb.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/2f4cd43faa9d6470b30a9fbcbac6584db8108c1f https://git.kernel.org/stable/c/4310c6b8e75d6a47f7548e5948fbe6318aa4440a