Linux
thunderbolt: Clamp XDomain response data copy to allocation size
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= cdae7c07e3e3509eaabc18c1640a55dc5b99c179, < 0b334279a82d79fb4723bd4f614305de1ab69caa
- >= cdae7c07e3e3509eaabc18c1640a55dc5b99c179, < 6021d39ccd979713b39b980286020d8f9a45efd1
- >= cdae7c07e3e3509eaabc18c1640a55dc5b99c179, < 89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d
- >= cdae7c07e3e3509eaabc18c1640a55dc5b99c179, < 5db10c8ad8c09f72c847dfeef3d876098257f505
- >= cdae7c07e3e3509eaabc18c1640a55dc5b99c179, < 05a43157676c243c248d1c6d9dcecbe6eba2f35d
- >= cdae7c07e3e3509eaabc18c1640a55dc5b99c179, < fcbd0cdab92838854a5818be7ed8a097164ef6d5
- >= cdae7c07e3e3509eaabc18c1640a55dc5b99c179, < 906035d5c3784570191d259cbf9a0ac1617852b5
- >= cdae7c07e3e3509eaabc18c1640a55dc5b99c179, < 322e93448d908434ae5545660fcbe8f5a7a8e141
Fixed in 0b334279a82d79fb4723bd4f614305de1ab69caa, 6021d39ccd979713b39b980286020d8f9a45efd1, 89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d, 5db10c8ad8c09f72c847dfeef3d876098257f505, 05a43157676c243c248d1c6d9dcecbe6eba2f35d, fcbd0cdab92838854a5818be7ed8a097164ef6d5, 906035d5c3784570191d259cbf9a0ac1617852b5, 322e93448d908434ae5545660fcbe8f5a7a8e141
- 4.15
Fixed in 0, 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 0b334279a82d79fb4723bd4f614305de1ab69caa or 6021d39ccd979713b39b980286020d8f9a45efd1 or 89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d or 5db10c8ad8c09f72c847dfeef3d876098257f505 or 05a43157676c243c248d1c6d9dcecbe6eba2f35d or fcbd0cdab92838854a5818be7ed8a097164ef6d5 or 906035d5c3784570191d259cbf9a0ac1617852b5 or 322e93448d908434ae5545660fcbe8f5a7a8e141 or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.