CVE-2026-74357
published high CVSS 3.1 · 7.8drm/amdgpu: fix KASAN slab-out-of-bounds in amdgpu_coredump ring dump
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxeea85914d15bfe3bdf9f8f80a479f0dee0aa7d73 to < efb1dadaeb897b22b9e118d398d0f41e70e9ccca · eea85914d15bfe3bdf9f8f80a479f0dee0aa7d73 to < 08ac3a7879d300302a1927ce2038629539a37f8b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.1.5 through 7.1.* (unaffected · semver) · 7.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix KASAN slab-out-of-bounds in amdgpu_coredump ring dump The ring content dump in amdgpu_coredump() uses two separate loops over adev->rings[]: the first counts rings with unsignalled fences to size the allocation, and the second copies ring data into the allocated buffers. Both loops use the same condition to skip rings: atomic_read(&ring->fence_drv.last_seq) == ring->fence_drv.sync_seq Because last_seq is an atomic that is updated concurrently by the fence signalling path, additional rings may appear unsignalled in the second loop that were signalled during the first. When this happens, idx exceeds the allocated ring_count and the store to coredump->rings[idx] writes past the end of the kcalloc-ed buffer. This was found during IGT stressful test amd_queue_reset which triggers random GPU resets. The OVERSIZE subtest (CMD_STREAM_EXEC_INVALID_PACKET_LENGTH_OVERSIZE on GFX ring) provokes a ring timeout and subsequent coredump, which hits the race between the counting and copying loops. The failure is non-deterministic and depends on fence signalling timing during the reset. KASAN log: BUG: KASAN: slab-out-of-bounds in amdgpu_coredump+0x1274/0x12f0 [amdgpu] Write of size 4 at addr ffff888106154258 by task kworker/u128:5/23625 CPU: 16 UID: 0 PID: 23625 Comm: kworker/u128:5 Not tainted 6.19.0+ #35 Workqueue: amdgpu-reset-dev drm_sched_job_timedout [gpu_sched] Call Trace: <TASK> dump_stack_lvl+0xa5/0x110 print_report+0xd1/0x660 kasan_report+0xf3/0x130 __asan_report_store4_noabort+0x17/0x30 amdgpu_coredump+0x1274/0x12f0 [amdgpu] amdgpu_job_timedout+0xef0/0x16c0 [amdgpu] drm_sched_job_timedout+0x194/0x5c0 [gpu_sched] process_one_work+0x84b/0x1990 worker_thread+0x6b8/0x11b0 </TASK> Allocated by task 23625: kasan_save_stack+0x39/0x70 __kasan_kmalloc+0xc3/0xd0 __kmalloc_noprof+0x2ec/0x910 amdgpu_coredump+0x5c5/0x12f0 [amdgpu] amdgpu_job_timedout+0xef0/0x16c0 [amdgpu] The buggy address belongs to the object at ffff888106154200 which belongs to the cache kmalloc-rnd-09-96 of size 96 The buggy address is located 16 bytes to the right of allocated 72-byte region [ffff888106154200, ffff888106154248) 72 bytes = 3 * sizeof(struct amdgpu_coredump_ring), so ring_count was 3 but idx reached 3+, writing ring_index (at struct offset 16) 16 bytes past the allocation. Fix by adding an idx < ring_count guard to the copy loop so it cannot exceed the allocated count even when the fence state changes between the two passes.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - Exploitation requires submitting AMDGPU_CS ioctls on /dev/dri/renderD* to hang a GPU ring, which triggers amdgpu_coredump() from the local drm_sched_job_timedout workqueue during reset recovery. AC:L - An attacker can reliably provoke ring timeouts with crafted GFX packets (e.g., invalid packet length oversize per IGT) and repeatedly retry to win the fence-signalling race between the counting and copy loops. PR:L - AMDGPU_CS and related ioctls are allowed for DRM render clients on /dev/dri/renderD*, reachable by unprivileged local users in the render/video group on workstations, gaming PCs, and cloud GPU tenants. UI:N - No victim interaction is required; the attacker alone submits malicious GPU command streams that cause the timeout and subsequent vulnerable coredump path. S:U - The slab-out-of-bounds write corrupts kernel heap memory within the same kernel security authority and does not cross a VM, container, or IOMMU boundary by itself. C:H - The bug performs out-of-bounds writes past the kcalloc'd rings[] array and can also memcpy past the undersized rings_dw buffer, corrupting adjacent kmalloc objects and enabling kernel memory disclosure. I:H - Out-of-bounds heap writes of ring metadata and full ring buffer contents provide memory corruption primitives that can be leveraged for arbitrary kernel data modification and code execution. A:H - Slab-out-of-bounds corruption during GPU reset coredump in a kernel worker can cause kernel Oops/panic or failed recovery, denying availability on AMD GPU systems.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | eea85914d15bfe3bdf9f8f80a479f0dee0aa7d73 to < efb1dadaeb897b22b9e118d398d0f41e70e9ccca (affected · git)eea85914d15bfe3bdf9f8f80a479f0dee0aa7d73 to < 08ac3a7879d300302a1927ce2038629539a37f8b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.1 (affected)0 to < 7.1 (unaffected · semver)7.1.5 through 7.1.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
drm/amdgpu: fix KASAN slab-out-of-bounds in amdgpu_coredump ring dump
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 90a6f3f234c7bf12a8166f7267042f164faa3cdecd020952232829797be7baf3
- Ingested
- 23 Sep 2026, 09:31:05 UTC
- Source record
- Official CVE record