CVE-2026-72449: drm/amdkfd: fix list_del corruption in kfd_criu_resume_svm
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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)
The Linux kernel CVE team has assigned CVE-2026-72449 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.18 with commit 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba and fixed in 6.1.178 with commit c8a8d350a273c005a48c64c4519d21b2a51c5ceb Issue introduced in 5.18 with commit 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba and fixed in 6.6.145 with commit 506e635aed05dbdeef11e3c59f6e42980cda5b6d Issue introduced in 5.18 with commit 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba and fixed in 6.12.97 with commit 838b57b3e7ce8cce0fda56d0861add3d464dd6c8 Issue introduced in 5.18 with commit 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba and fixed in 6.18.40 with commit 96ac562a9ea3020981f536384711190841c81aa8 Issue introduced in 5.18 with commit 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba and fixed in 7.1.5 with commit e33a3bd5cb8d0cf1557dee014115f812c9686130 Issue introduced in 5.18 with commit 2a909ae718715b3bac75d945e38dc0a5e4a0f1ba and fixed in 7.2-rc1 with commit 8fa5655da368d0306c03e9dc9cda8ae2a7840926
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-72449
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/c8a8d350a273c005a48c64c4519d21b2a51c5ceb https://git.kernel.org/stable/c/506e635aed05dbdeef11e3c59f6e42980cda5b6d https://git.kernel.org/stable/c/838b57b3e7ce8cce0fda56d0861add3d464dd6c8 https://git.kernel.org/stable/c/96ac562a9ea3020981f536384711190841c81aa8 https://git.kernel.org/stable/c/e33a3bd5cb8d0cf1557dee014115f812c9686130 https://git.kernel.org/stable/c/8fa5655da368d0306c03e9dc9cda8ae2a7840926