thunderbolt: Clamp XDomain response data copy to allocation size
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.94, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 0b334279a82d79fb4723bd4f614305de1ab69caa; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 6021d39ccd979713b39b980286020d8f9a45efd1; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 5db10c8ad8c09f72c847dfeef3d876098257f505; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 05a43157676c243c248d1c6d9dcecbe6eba2f35d; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in fcbd0cdab92838854a5818be7ed8a097164ef6d5; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 906035d5c3784570191d259cbf9a0ac1617852b5; From cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · fixed in 322e93448d908434ae5545660fcbe8f5a7a8e141
- Linux Linux
4.15
- KernelLinux
From 4.15.0 · fixed in 5.10.259; From 5.11.0 · fixed in 5.15.210; From 5.16.0 · fixed in 6.1.176; From 6.2.0 · fixed in 6.6.143; From 6.7.0 · fixed in 6.12.94; From 6.13.0 · fixed in 6.18.36; From 6.19.0 · fixed in 7.0.13
References 8
git.kernel.org
- stable/c/0b334279a82d79fb4723bd4f614305de1ab69caa
- stable/c/6021d39ccd979713b39b980286020d8f9a45efd1
- stable/c/89ae04365e01d5ae4aae83044a8bbd2a9aaf8d0d
- stable/c/5db10c8ad8c09f72c847dfeef3d876098257f505
- stable/c/05a43157676c243c248d1c6d9dcecbe6eba2f35d
- stable/c/fcbd0cdab92838854a5818be7ed8a097164ef6d5
- stable/c/906035d5c3784570191d259cbf9a0ac1617852b5
- stable/c/322e93448d908434ae5545660fcbe8f5a7a8e141