Linux
drm/amdkfd: fix list_del corruption in kfd_criu_resume_svm
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix list_del corruption in kfd_criu_resume_svm The cleanup tail of kfd_criu_resume_svm() walks svms->criu_svm_metadata_list and kfree()s each struct criu_svm_metadata without removing it from the list. The list head is left pointing at freed kmalloc-96 objects. A second AMDKFD_IOC_CRIU_OP from the same process re-enters: list_empty() reads the dangling ->next (use-after-free), the loop walks freed entries, and each is kfree()'d again (double-free). This is reachable by an unprivileged render-group user via /dev/kfd with no capabilities required. Add list_del() before the kfree() so the list is properly emptied. The list_for_each_entry_safe() iterator already caches the next pointer, so unlinking during the walk is safe. (cherry picked from commit 6322d278a298e2c1430b9d2697743d3a04b788b1)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba, < c8a8d350a273c005a48c64c4519d21b2a51c5ceb
- >= 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba, < 506e635aed05dbdeef11e3c59f6e42980cda5b6d
- >= 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba, < 838b57b3e7ce8cce0fda56d0861add3d464dd6c8
- >= 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba, < 96ac562a9ea3020981f536384711190841c81aa8
- >= 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba, < e33a3bd5cb8d0cf1557dee014115f812c9686130
- >= 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba, < 8fa5655da368d0306c03e9dc9cda8ae2a7840926
Fixed in c8a8d350a273c005a48c64c4519d21b2a51c5ceb, 506e635aed05dbdeef11e3c59f6e42980cda5b6d, 838b57b3e7ce8cce0fda56d0861add3d464dd6c8, 96ac562a9ea3020981f536384711190841c81aa8, e33a3bd5cb8d0cf1557dee014115f812c9686130, 8fa5655da368d0306c03e9dc9cda8ae2a7840926
- 5.18
Fixed in 0, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to c8a8d350a273c005a48c64c4519d21b2a51c5ceb or 506e635aed05dbdeef11e3c59f6e42980cda5b6d or 838b57b3e7ce8cce0fda56d0861add3d464dd6c8 or 96ac562a9ea3020981f536384711190841c81aa8 or e33a3bd5cb8d0cf1557dee014115f812c9686130 or 8fa5655da368d0306c03e9dc9cda8ae2a7840926 or later.
Upgrade Linux to 0 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 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.