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 /> -&gt; create_signal_event() / create_other_event()<br /> -&gt; allocate_event_notification_slot()<br /> -&gt; idr_alloc(..., *restore_id, *restore_id + 1, ...)<br /> <br /> For BO restore:<br /> <br /> criu_restore_memory_of_gpu()<br /> -&gt; idr_alloc(..., bo_priv-&gt;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