Skip to contentSkip to conversation

CVE-2026-53147: thunderbolt: Validate XDomain request packet size before type cast

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

thunderbolt: Validate XDomain request packet size before type cast

tb_xdp_handle_request() casts the received packet buffer to protocol-specific structs without verifying that the allocation is large enough for the target type. A peer can send a minimal XDomain packet that passes the generic header length check but is shorter than the struct accessed after the cast, causing out-of- bounds reads from the kmemdup allocation.

Plumb the packet length through xdomain_request_work and validate it against the expected struct size before each cast.

The Linux kernel CVE team has assigned CVE-2026-53147 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.1.176 with commit a770e62923090d7572f1f5a8507ae551d354a057
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.6.143 with commit 0dd61ba03d05187726ecdf9c0e2175a81b9b24f6
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.12.94 with commit 79235c8add5da4bf27a12f5a5dbb579f300c059e
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.18.36 with commit 46da5c3ea011e884028a91cf913db093920a915b
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 7.0.13 with commit 07cd2787cdf8942d24a1a3ef81aa89b526fb6381
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 7.1 with commit a504b9f2797b739e0304d537e8aa4ce883ecce39

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-53147

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/xdomain.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/a770e62923090d7572f1f5a8507ae551d354a057
	https://git.kernel.org/stable/c/0dd61ba03d05187726ecdf9c0e2175a81b9b24f6
	https://git.kernel.org/stable/c/79235c8add5da4bf27a12f5a5dbb579f300c059e
	https://git.kernel.org/stable/c/46da5c3ea011e884028a91cf913db093920a915b
	https://git.kernel.org/stable/c/07cd2787cdf8942d24a1a3ef81aa89b526fb6381
	https://git.kernel.org/stable/c/a504b9f2797b739e0304d537e8aa4ce883ecce39