CVE-2026-80747: 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 kfdparsesubtype() casts the header to specific subtype structures.
Add validation that subtypehdr + length does not exceed the image boundary before parsing the subtype contents.
(cherry picked from commit 48e1d1e6e8798aef0312e68d8e586021b5b3cf4d)
Affected Software
Event History
Frequently Asked Questions
What malformed input condition leads to the out-of-bounds read?
A CRAT subtype whose header fits within the image but whose advertised length extends beyond the image boundary can trigger out-of-bounds reads during subtype parsing.
What check is required to prevent this condition?
Before parsing subtype contents, the parser must verify that the subtype header address plus its advertised length does not exceed the CRAT image boundary.