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.
Affected products
- Linux / Linuxcdae7c07e3e3509eaabc18c1640a55dc5b99c179 – 0b334279a82d79fb4723bd4f614305de1ab69caa
- Linux / Linuxcdae7c07e3e3509eaabc18c1640a55dc5b99c179 – 6021d39ccd979713b39b980286020d8f9a45efd1
- Linux / Linuxcdae7c07e3e3509eaabc18c1640a55dc5b99c179 – 89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d
- Linux / Linuxcdae7c07e3e3509eaabc18c1640a55dc5b99c179 – 5db10c8ad8c09f72c847dfeef3d876098257f505
- Linux / Linuxcdae7c07e3e3509eaabc18c1640a55dc5b99c179 – 05a43157676c243c248d1c6d9dcecbe6eba2f35d
- Linux / Linuxcdae7c07e3e3509eaabc18c1640a55dc5b99c179 – fcbd0cdab92838854a5818be7ed8a097164ef6d5
- Linux / Linuxcdae7c07e3e3509eaabc18c1640a55dc5b99c179 – 906035d5c3784570191d259cbf9a0ac1617852b5
- Linux / Linuxcdae7c07e3e3509eaabc18c1640a55dc5b99c179 – 322e93448d908434ae5545660fcbe8f5a7a8e141
- Linux / Linux4.15 – 4.15
- Linux / Linux0 – 4.15
- Linux / Linux5.10.259 – 5.10.*
- Linux / Linux5.15.210 – 5.15.*
- Linux / Linux6.1.176 – 6.1.*
- Linux / Linux6.6.143 – 6.6.*
- Linux / Linux6.12.94 – 6.12.*
- Linux / Linux6.18.36 – 6.18.*
- Linux / Linux7.0.13 – 7.0.*
- Linux / Linux7.1 – *
References
- MISChttps://git.kernel.org/stable/c/0b334279a82d79fb4723bd4f614305de1ab69caa
- MISChttps://git.kernel.org/stable/c/6021d39ccd979713b39b980286020d8f9a45efd1
- MISChttps://git.kernel.org/stable/c/89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d
- MISChttps://git.kernel.org/stable/c/5db10c8ad8c09f72c847dfeef3d876098257f505
- MISChttps://git.kernel.org/stable/c/05a43157676c243c248d1c6d9dcecbe6eba2f35d
- MISChttps://git.kernel.org/stable/c/fcbd0cdab92838854a5818be7ed8a097164ef6d5
- MISChttps://git.kernel.org/stable/c/906035d5c3784570191d259cbf9a0ac1617852b5
- MISChttps://git.kernel.org/stable/c/322e93448d908434ae5545660fcbe8f5a7a8e141