Skip to contentSkip to conversation

CVE-2026-53148: thunderbolt: Clamp XDomain response data copy to allocation size

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: Clamp XDomain response data copy to allocation size

tb_xdp_properties_request() derives the per-packet copy length from the response header without checking that it fits in the previously allocated data buffer. A malicious peer can set its length field larger than the declared data_length, causing memcpy to write past the kcalloc allocation.

Clamp the per-packet copy length so that the cumulative offset never exceeds data_len.

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

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

	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 5.10.259 with commit 0b334279a82d79fb4723bd4f614305de1ab69caa
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 5.15.210 with commit 6021d39ccd979713b39b980286020d8f9a45efd1
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.1.176 with commit 89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.6.143 with commit 5db10c8ad8c09f72c847dfeef3d876098257f505
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.12.94 with commit 05a43157676c243c248d1c6d9dcecbe6eba2f35d
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 6.18.36 with commit fcbd0cdab92838854a5818be7ed8a097164ef6d5
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 7.0.13 with commit 906035d5c3784570191d259cbf9a0ac1617852b5
	Issue introduced in 4.15 with commit cdae7c07e3e3509eaabc18c1640a55dc5b99c179 and fixed in 7.1 with commit 322e93448d908434ae5545660fcbe8f5a7a8e141

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

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/0b334279a82d79fb4723bd4f614305de1ab69caa
	https://git.kernel.org/stable/c/6021d39ccd979713b39b980286020d8f9a45efd1
	https://git.kernel.org/stable/c/89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d
	https://git.kernel.org/stable/c/5db10c8ad8c09f72c847dfeef3d876098257f505
	https://git.kernel.org/stable/c/05a43157676c243c248d1c6d9dcecbe6eba2f35d
	https://git.kernel.org/stable/c/fcbd0cdab92838854a5818be7ed8a097164ef6d5
	https://git.kernel.org/stable/c/906035d5c3784570191d259cbf9a0ac1617852b5
	https://git.kernel.org/stable/c/322e93448d908434ae5545660fcbe8f5a7a8e141