Linux
drm/amdkfd: clamp v9 CRIU control stack checkpoint copy to BO size
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: clamp v9 CRIU control stack checkpoint copy to BO size CRIU checkpoint copies the MQD control stack using cp_hqd_cntl_stack_size from hardware without bounding it to the allocated BO region. If the HW field is larger than the queue's control stack allocation, memcpy reads past the BO into adjacent GTT memory and can leak kernel data to userspace. Store the page-aligned control stack BO size in mqd_manager and clamp checkpoint copies and reported checkpoint sizes to min(cp_hqd_cntl_stack_size, mm->ctl_stack_size). Apply the same bound for multi-XCC v9.4.3 checkpoint layout. (cherry picked from commit 6c2abd0ec09e86c6323010673766f76050e28aa3)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3a9822d7bd623be9000cef8101ecf8479fa53f2c, < 1218c6dcec80f886372635e82f3229d5babc37d3
- >= 3a9822d7bd623be9000cef8101ecf8479fa53f2c, < a0d87beb2660a5098b2b0ecdc1e96810a9074ea9
- >= 3a9822d7bd623be9000cef8101ecf8479fa53f2c, < 426ffae6ecc7ec77d32bf8be065c21a1b881b084
Fixed in 1218c6dcec80f886372635e82f3229d5babc37d3, a0d87beb2660a5098b2b0ecdc1e96810a9074ea9, 426ffae6ecc7ec77d32bf8be065c21a1b881b084
- 5.18
Fixed in 0, 6.12.114, 7.1.6, 7.2
Mitigation
Upgrade Linux to 1218c6dcec80f886372635e82f3229d5babc37d3 or a0d87beb2660a5098b2b0ecdc1e96810a9074ea9 or 426ffae6ecc7ec77d32bf8be065c21a1b881b084 or later.
Upgrade Linux to 0 or 6.12.114 or 7.1.6 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.