CVE-2026-80870

drm/amdkfd: Validate CRIU-restored IDs before idr_alloc

No CVSS score yet EPSS 0.16%

Published 4 Sep 2026 Updated 4 Sep 2026 CNA: Linux

Check your servers for CVE-2026-80870

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-80870 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.53% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 40e8a766a761f7fdc8530347527b344fddf6f1a8, before f8687018f24037056692c1e93c7d96cc72889d5b
affected from 40e8a766a761f7fdc8530347527b344fddf6f1a8, before 89a75e3349c4fae28cbedc711bc924cbc6293da2
affected from 40e8a766a761f7fdc8530347527b344fddf6f1a8, before 085ea93bda71fee600cc12a17026598eb10dd1f9
affected from 40e8a766a761f7fdc8530347527b344fddf6f1a8, before 543ed0f61d56501cc585162da600bbedd7c08c0f
affected from 40e8a766a761f7fdc8530347527b344fddf6f1a8, before cb6311f25a096621ac7ffd91b50d1bb1cfb63a96
affected from 40e8a766a761f7fdc8530347527b344fddf6f1a8, before 85043dd49c2f51a37b22618168e3ae59ab92f0d6
Other versions: unaffected
Linux
affected 5.18
unaffected before 5.18
unaffected from 6.1.178 up to and including 6.1.*
unaffected from 6.6.145 up to and including 6.6.*
unaffected from 6.12.97 up to and including 6.12.*
unaffected from 6.18.40 up to and including 6.18.*
unaffected from 7.1.5 up to and including 7.1.*
unaffected 7.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-80870 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-80870

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-80870
trivy image --scanners vuln IMAGE | grep CVE-2026-80870

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-80870 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.