# CVE-2026-80870: drm/amdkfd: Validate CRIU-restored IDs before idr\_alloc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-09-04T16:48:31.902Z
- **Modified:** 2026-09-04T17:16:58.860Z

## Who should check

- Anyone running Linux \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< f8687018f24037056692c1e93c7d96cc72889d5b; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 89a75e3349c4fae28cbedc711bc924cbc6293da2; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 085ea93bda71fee600cc12a17026598eb10dd1f9; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 543ed0f61d56501cc585162da600bbedd7c08c0f; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< cb6311f25a096621ac7ffd91b50d1bb1cfb63a96; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 85043dd49c2f51a37b22618168e3ae59ab92f0d6
- Anyone running Linux 5.18

## 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 and fixed versions

- Linux: \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< f8687018f24037056692c1e93c7d96cc72889d5b; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 89a75e3349c4fae28cbedc711bc924cbc6293da2; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 085ea93bda71fee600cc12a17026598eb10dd1f9; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 543ed0f61d56501cc585162da600bbedd7c08c0f; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< cb6311f25a096621ac7ffd91b50d1bb1cfb63a96; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 85043dd49c2f51a37b22618168e3ae59ab92f0d6 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 85043dd49c2f51a37b22618168e3ae59ab92f0d6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-80870. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-80870.md
Affected: Linux >= 40e8a766a761f7fdc8530347527b344fddf6f1a8, < f8687018f24037056692c1e93c7d96cc72889d5b; >= 40e8a766a761f7fdc8530347527b344fddf6f1a8, < 89a75e3349c4fae28cbedc711bc924cbc6293da2; >= 40e8a766a761f7fdc8530347527b344fddf6f1a8, < 085ea93bda71fee600cc12a17026598eb10dd1f9; >= 40e8a766a761f7fdc853034…
Fixed in: Linux 89a75e3349c4fae28cbedc711bc924cbc6293da2, Linux 085ea93bda71fee600cc12a17026598eb10dd1f9, Linux 543ed0f61d56501cc585162da600bbedd7c08c0f, Linux 85043dd49c2f51a37b22618168e3ae59ab92f0d6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-80870 being exploited?

There is no confirmed exploitation: CVE-2026-80870 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-80870?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-80870?

Linux \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< f8687018f24037056692c1e93c7d96cc72889d5b; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 89a75e3349c4fae28cbedc711bc924cbc6293da2; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 085ea93bda71fee600cc12a17026598eb10dd1f9; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 543ed0f61d56501cc585162da600bbedd7c08c0f; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< cb6311f25a096621ac7ffd91b50d1bb1cfb63a96; \>= 40e8a766a761f7fdc8530347527b344fddf6f1a8, \< 85043dd49c2f51a37b22618168e3ae59ab92f0d6; Linux 5.18.

### Is there a fix for CVE-2026-80870?

Yes. Fixed in Linux 89a75e3349c4fae28cbedc711bc924cbc6293da2, Linux 085ea93bda71fee600cc12a17026598eb10dd1f9, Linux 543ed0f61d56501cc585162da600bbedd7c08c0f, Linux 85043dd49c2f51a37b22618168e3ae59ab92f0d6. Upgrade Linux to 85043dd49c2f51a37b22618168e3ae59ab92f0d6 or later.

### How do I check if I'm affected by CVE-2026-80870?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f8687018f24037056692c1e93c7d96cc72889d5b>
- other: <https://git.kernel.org/stable/c/89a75e3349c4fae28cbedc711bc924cbc6293da2>
- other: <https://git.kernel.org/stable/c/085ea93bda71fee600cc12a17026598eb10dd1f9>
- other: <https://git.kernel.org/stable/c/543ed0f61d56501cc585162da600bbedd7c08c0f>
- other: <https://git.kernel.org/stable/c/cb6311f25a096621ac7ffd91b50d1bb1cfb63a96>
- other: <https://git.kernel.org/stable/c/85043dd49c2f51a37b22618168e3ae59ab92f0d6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-80870>

HTML: <https://flawdb.com/CVE-2026-80870> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-80870>
