CVE-2026-80870

drm/amdkfd: Validate CRIU-restored IDs before idr_alloc

N/A
Published: September 4, 2026 at 04:48 PM UTC
Updated: September 4, 2026 at 05:36 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Validate CRIU-restored IDs before idr_alloc The KFD CRIU restore flow restores previously saved object IDs from userspace. For event restore: kfd_criu_restore_event() -> create_signal_event() / create_other_event() -> allocate_event_notification_slot() -> idr_alloc(..., *restore_id, *restore_id + 1, ...) For BO restore: criu_restore_memory_of_gpu() -> idr_alloc(..., bo_priv->idr_handle, ...) In both cases, the restored ID comes from userspace-provided CRIU data. idr_alloc() expects the ID range values to fit within signed int limits. If a restored ID is larger than INT_MAX, it can trigger a WARN in the IDR layer. A kernel WARN is undesirable because it prints a warning trace and may cause a panic or reboot on systems with panic_on_warn enabled. Smatch reported these paths as allowing unchecked userspace values to reach idr_alloc(). Add INT_MAX validation before using restored IDs in: - kfd_criu_restore_event() - criu_restore_memory_of_gpu() If the restored ID is invalid, return -EINVAL. This prevents invalid restore data from reaching the IDR layer and avoids WARN-triggering paths, while keeping valid restore behavior unchanged.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.18 ≤ v < 6.1.1785.18 ≤ v < 6.12.975.18 ≤ v < 6.18.405.18 ≤ v < 6.6.1455.18 ≤ v < 7.1.55.18 ≤ v < 7.240e8a766a761f7fdc8530347527b344fddf6f1a85.18
Vendor states this is fixed in 085ea93bda71fee600cc12a17026598eb10dd1f9 (fixed)
Vendor states this is fixed in 543ed0f61d56501cc585162da600bbedd7c08c0f (fixed)
Vendor states this is fixed in 85043dd49c2f51a37b22618168e3ae59ab92f0d6 (fixed)
Vendor states this is fixed in 89a75e3349c4fae28cbedc711bc924cbc6293da2 (fixed)
Vendor states this is fixed in cb6311f25a096621ac7ffd91b50d1bb1cfb63a96 (fixed)
Vendor states this is fixed in f8687018f24037056692c1e93c7d96cc72889d5b (fixed)
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 6.1.178 (unaffected)
Vendor states this is fixed in 6.12.97 (unaffected)
Vendor states this is fixed in 6.18.40 (unaffected)
Vendor states this is fixed in 6.6.145 (unaffected)
Vendor states this is fixed in 7.1.5 (unaffected)
Vendor states this is fixed in 7.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusRECEIVED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card