CVE-2026-80870
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
04/09/2026
Last modified:
04/09/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drm/amdkfd: Validate CRIU-restored IDs before idr_alloc<br />
<br />
The KFD CRIU restore flow restores previously saved object IDs from<br />
userspace.<br />
<br />
For event restore:<br />
<br />
kfd_criu_restore_event()<br />
-> create_signal_event() / create_other_event()<br />
-> allocate_event_notification_slot()<br />
-> idr_alloc(..., *restore_id, *restore_id + 1, ...)<br />
<br />
For BO restore:<br />
<br />
criu_restore_memory_of_gpu()<br />
-> idr_alloc(..., bo_priv->idr_handle, ...)<br />
<br />
In both cases, the restored ID comes from userspace-provided CRIU data.<br />
<br />
idr_alloc() expects the ID range values to fit within signed int<br />
limits. If a restored ID is larger than INT_MAX, it can trigger a WARN<br />
in the IDR layer.<br />
<br />
A kernel WARN is undesirable because it prints a warning trace and may<br />
cause a panic or reboot on systems with panic_on_warn enabled.<br />
<br />
Smatch reported these paths as allowing unchecked userspace values to<br />
reach idr_alloc().<br />
<br />
Add INT_MAX validation before using restored IDs in:<br />
<br />
- kfd_criu_restore_event()<br />
- criu_restore_memory_of_gpu()<br />
<br />
If the restored ID is invalid, return -EINVAL.<br />
<br />
This prevents invalid restore data from reaching the IDR layer and<br />
avoids WARN-triggering paths, while keeping valid restore behavior<br />
unchanged.
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/085ea93bda71fee600cc12a17026598eb10dd1f9
- https://git.kernel.org/stable/c/543ed0f61d56501cc585162da600bbedd7c08c0f
- https://git.kernel.org/stable/c/85043dd49c2f51a37b22618168e3ae59ab92f0d6
- https://git.kernel.org/stable/c/89a75e3349c4fae28cbedc711bc924cbc6293da2
- https://git.kernel.org/stable/c/cb6311f25a096621ac7ffd91b50d1bb1cfb63a96
- https://git.kernel.org/stable/c/f8687018f24037056692c1e93c7d96cc72889d5b


