{"id":"CVE-2026-80870","aliases":["CVE-2026-80870"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amdkfd: Validate CRIU-restored IDs before idr_alloc","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Validate CRIU-restored IDs before idr_alloc\n\nThe KFD CRIU restore flow restores previously saved object IDs from\nuserspace.\n\nFor event restore:\n\n  kfd_criu_restore_event()\n      -> create_signal_event() / create_other_event()\n          -> allocate_event_notification_slot()\n              -> idr_alloc(..., *restore_id, *restore_id + 1, ...)\n\nFor BO restore:\n\n  criu_restore_memory_of_gpu()\n      -> idr_alloc(..., bo_priv->idr_handle, ...)\n\nIn both cases, the restored ID comes from userspace-provided CRIU data.\n\nidr_alloc() expects the ID range values to fit within signed int\nlimits. If a restored ID is larger than INT_MAX, it can trigger a WARN\nin the IDR layer.\n\nA kernel WARN is undesirable because it prints a warning trace and may\ncause a panic or reboot on systems with panic_on_warn enabled.\n\nSmatch reported these paths as allowing unchecked userspace values to\nreach idr_alloc().\n\nAdd INT_MAX validation before using restored IDs in:\n\n- kfd_criu_restore_event()\n- criu_restore_memory_of_gpu()\n\nIf the restored ID is invalid, return -EINVAL.\n\nThis prevents invalid restore data from reaching the IDR layer and\navoids WARN-triggering paths, while keeping valid restore behavior\nunchanged.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Validate CRIU-restored IDs before idr_alloc\n\nThe KFD CRIU restore flow restores previously saved object IDs from\nuserspace.\n\nFor event restore:\n\n  kfd_criu_restore_event()\n      -> create_signal_event() / create_other_event()\n          -> allocate_event_notification_slot()\n              -> idr_alloc(..., *restore_id, *restore_id + 1, ...)\n\nFor BO restore:\n\n  criu_restore_memory_of_gpu()\n      -> idr_alloc(..., bo_priv->idr_handle, ...)\n\nIn both cases, the restored ID comes from userspace-provided CRIU data.\n\nidr_alloc() expects the ID range values to fit within signed int\nlimits. If a restored ID is larger than INT_MAX, it can trigger a WARN\nin the IDR layer.\n\nA kernel WARN is undesirable because it prints a warning trace and may\ncause a panic or reboot on systems with panic_on_warn enabled.\n\nSmatch reported these paths as allowing unchecked userspace values to\nreach idr_alloc().\n\nAdd INT_MAX validation before using restored IDs in:\n\n- kfd_criu_restore_event()\n- criu_restore_memory_of_gpu()\n\nIf the restored ID is invalid, return -EINVAL.\n\nThis prevents invalid restore data from reaching the IDR layer and\navoids WARN-triggering paths, while keeping valid restore behavior\nunchanged.","source":"cvelist"}],"published":"2026-09-04T16:48:31.902Z","modified":"2026-09-04T17:16:58.860Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"40e8a766a761f7fdc8530347527b344fddf6f1a8","fixed":"f8687018f24037056692c1e93c7d96cc72889d5b","status":"affected"},{"type":"git","introduced":"40e8a766a761f7fdc8530347527b344fddf6f1a8","fixed":"89a75e3349c4fae28cbedc711bc924cbc6293da2","status":"affected"},{"type":"git","introduced":"40e8a766a761f7fdc8530347527b344fddf6f1a8","fixed":"085ea93bda71fee600cc12a17026598eb10dd1f9","status":"affected"},{"type":"git","introduced":"40e8a766a761f7fdc8530347527b344fddf6f1a8","fixed":"543ed0f61d56501cc585162da600bbedd7c08c0f","status":"affected"},{"type":"git","introduced":"40e8a766a761f7fdc8530347527b344fddf6f1a8","fixed":"cb6311f25a096621ac7ffd91b50d1bb1cfb63a96","status":"affected"},{"type":"git","introduced":"40e8a766a761f7fdc8530347527b344fddf6f1a8","fixed":"85043dd49c2f51a37b22618168e3ae59ab92f0d6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f8687018f24037056692c1e93c7d96cc72889d5b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89a75e3349c4fae28cbedc711bc924cbc6293da2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/085ea93bda71fee600cc12a17026598eb10dd1f9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/543ed0f61d56501cc585162da600bbedd7c08c0f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb6311f25a096621ac7ffd91b50d1bb1cfb63a96","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85043dd49c2f51a37b22618168e3ae59ab92f0d6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80870","url":"https://www.cve.org/CVERecord?id=CVE-2026-80870","licence":"CVE Terms of Use","modified":"2026-09-04T16:48:31.902Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80870","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80870","licence":"Public domain","modified":"2026-09-04T17:16:58.860Z"}],"updatedAt":"2026-11-25T22:59:36.367Z","epss":{"score":0.00161,"percentile":0.05528,"date":"2026-12-01T12:00:22.000Z"}}