Linux
drm/amdkfd: Add bounds check for CRAT subtype length
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Add bounds check for CRAT subtype length The CRAT parser validates that the subtype header fits within the image, but does not verify that the advertised subtype length fits. A malformed CRAT table with an oversized length field causes out-of-bounds reads when kfd_parse_subtype() casts the header to specific subtype structures. Add validation that sub_type_hdr + length does not exceed the image boundary before parsing the subtype contents. (cherry picked from commit 48e1d1e6e8798aef0312e68d8e586021b5b3cf4d)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5b5c4e40a37e858e2bff8cd91be8e972256392c4, < 1f9cc5375916b57acb1ad4443af7b4dbf347638a
- >= 5b5c4e40a37e858e2bff8cd91be8e972256392c4, < fef8c8afcb85dce5ff115f82a148cdf87a9617b9
- >= 5b5c4e40a37e858e2bff8cd91be8e972256392c4, < 77b659fb104eb069ea7a61960699e4d1eea6567a
- >= 5b5c4e40a37e858e2bff8cd91be8e972256392c4, < 69164d6bdad5d6657e51436a3f602822f620a46a
- >= 5b5c4e40a37e858e2bff8cd91be8e972256392c4, < ca91e0cc8087568e4b791648a7c01e804f48cb73
- >= 5b5c4e40a37e858e2bff8cd91be8e972256392c4, < 6e7566ba4739dd573c331adde1c96690f7a567bd
Fixed in 1f9cc5375916b57acb1ad4443af7b4dbf347638a, fef8c8afcb85dce5ff115f82a148cdf87a9617b9, 77b659fb104eb069ea7a61960699e4d1eea6567a, 69164d6bdad5d6657e51436a3f602822f620a46a, ca91e0cc8087568e4b791648a7c01e804f48cb73, 6e7566ba4739dd573c331adde1c96690f7a567bd
- 3.19
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.1.10, 7.2
Mitigation
Upgrade Linux to 1f9cc5375916b57acb1ad4443af7b4dbf347638a or fef8c8afcb85dce5ff115f82a148cdf87a9617b9 or 77b659fb104eb069ea7a61960699e4d1eea6567a or 69164d6bdad5d6657e51436a3f602822f620a46a or ca91e0cc8087568e4b791648a7c01e804f48cb73 or 6e7566ba4739dd573c331adde1c96690f7a567bd or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.1.10 or 7.2 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.