{"id":"CVE-2026-53147","summary":"thunderbolt: Validate XDomain request packet size before type cast","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nthunderbolt: Validate XDomain request packet size before type cast\n\ntb_xdp_handle_request() casts the received packet buffer to\nprotocol-specific structs without verifying that the allocation\nis large enough for the target type.  A peer can send a minimal\nXDomain packet that passes the generic header length check but is\nshorter than the struct accessed after the cast, causing out-of-\nbounds reads from the kmemdup allocation.\n\nPlumb the packet length through xdomain_request_work and validate\nit against the expected struct size before each cast.","modified":"2026-07-08T08:09:45.616617620Z","published":"2026-06-25T08:38:33.547Z","related":["CGA-mhf4-8qpm-hg9g"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53147.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/07cd2787cdf8942d24a1a3ef81aa89b526fb6381"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0dd61ba03d05187726ecdf9c0e2175a81b9b24f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/46da5c3ea011e884028a91cf913db093920a915b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/79235c8add5da4bf27a12f5a5dbb579f300c059e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a504b9f2797b739e0304d537e8aa4ce883ecce39"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a770e62923090d7572f1f5a8507ae551d354a057"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53147.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53147"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cdae7c07e3e3509eaabc18c1640a55dc5b99c179"},{"fixed":"a770e62923090d7572f1f5a8507ae551d354a057"},{"fixed":"0dd61ba03d05187726ecdf9c0e2175a81b9b24f6"},{"fixed":"79235c8add5da4bf27a12f5a5dbb579f300c059e"},{"fixed":"46da5c3ea011e884028a91cf913db093920a915b"},{"fixed":"07cd2787cdf8942d24a1a3ef81aa89b526fb6381"},{"fixed":"a504b9f2797b739e0304d537e8aa4ce883ecce39"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53147.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"6.1.176"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.143"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.94"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.36"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.13"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53147.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}]}