# CVE-2024-26656: drm/amdgpu: fix use-after-free bug

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-04-02T06:08:43.558Z
- **Modified:** 2026-08-05T11:26:34.438Z

## Who should check

- Anyone running Linux \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 2e13f88e01ae7e28a7e831bf5c2409c4748e0a60; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< e87e08c94c9541b4e18c4c13f2f605935f512605; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< af054a5fb24a144f99895afce9519d709891894c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 22f665ecfd1225afa1309ace623157d12bb9bb0c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 22207fd5c80177b860279653d017474b2812af5e
- Anyone running Linux 4.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: fix use-after-free bug

The bug can be triggered by sending a single amdgpu\_gem\_userptr\_ioctl
to the AMDGPU DRM driver on any ASICs with an invalid address and size.
The bug was reported by Joonkyo Jung \<joonkyoj@yonsei.ac.kr\>.
For example the following code:

static void Syzkaller1(int fd)
{
	struct drm\_amdgpu\_gem\_userptr arg;
	int ret;

	arg.addr = 0xffffffffffff0000;
	arg.size = 0x80000000; /\*2 Gb\*/
	arg.flags = 0x7;
	ret = drmIoctl(fd, 0xc1186451/\*amdgpu\_gem\_userptr\_ioctl\*/, &arg);
}

Due to the address and size are not valid there is a failure in
amdgpu\_hmm\_register-\>mmu\_interval\_notifier\_insert-\>\_\_mmu\_interval\_notifier\_insert-\>
check\_shl\_overflow, but we even the amdgpu\_hmm\_register failure we still call
amdgpu\_hmm\_unregister into  amdgpu\_gem\_object\_free which causes access to a bad address.
The following stack is below when the issue is reproduced when Kazan is enabled:

\[  +0.000014\] Hardware name: ASUS System Product Name/ROG STRIX B550-F GAMING (WI-FI), BIOS 1401 12/03/2020
\[  +0.000009\] RIP: 0010:mmu\_interval\_notifier\_remove+0x327/0x340
\[  +0.000017\] Code: ff ff 49 89 44 24 08 48 b8 00 01 00 00 00 00 ad de 4c 89 f7 49 89 47 40 48 83 c0 22 49 89 47 48 e8 ce d1 2d 01 e9 32 ff ff ff \<0f\> 0b e9 16 ff ff ff 4c 89 ef e8 fa 14 b3 ff e9 36 ff ff ff e8 80
\[  +0.000014\] RSP: 0018:ffffc90002657988 EFLAGS: 00010246
\[  +0.000013\] RAX: 0000000000000000 RBX: 1ffff920004caf35 RCX: ffffffff8160565b
\[  +0.000011\] RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffff8881a9f78260
\[  +0.000010\] RBP: ffffc90002657a70 R08: 0000000000000001 R09: fffff520004caf25
\[  +0.000010\] R10: 0000000000000003 R11: ffffffff8161d1d6 R12: ffff88810e988c00
\[  +0.000010\] R13: ffff888126fb5a00 R14: ffff88810e988c0c R15: ffff8881a9f78260
\[  +0.000011\] FS:  00007ff9ec848540(0000) GS:ffff8883cc880000(0000) knlGS:0000000000000000
\[  +0.000012\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  +0.000010\] CR2: 000055b3f7e14328 CR3: 00000001b5770000 CR4: 0000000000350ef0
\[  +0.000010\] Call Trace:
\[  +0.000006\]  \<TASK\>
\[  +0.000007\]  ? show\_regs+0x6a/0x80
\[  +0.000018\]  ? \_\_warn+0xa5/0x1b0
\[  +0.000019\]  ? mmu\_interval\_notifier\_remove+0x327/0x340
\[  +0.000018\]  ? report\_bug+0x24a/0x290
\[  +0.000022\]  ? handle\_bug+0x46/0x90
\[  +0.000015\]  ? exc\_invalid\_op+0x19/0x50
\[  +0.000016\]  ? asm\_exc\_invalid\_op+0x1b/0x20
\[  +0.000017\]  ? kasan\_save\_stack+0x26/0x50
\[  +0.000017\]  ? mmu\_interval\_notifier\_remove+0x23b/0x340
\[  +0.000019\]  ? mmu\_interval\_notifier\_remove+0x327/0x340
\[  +0.000019\]  ? mmu\_interval\_notifier\_remove+0x23b/0x340
\[  +0.000020\]  ? \_\_pfx\_mmu\_interval\_notifier\_remove+0x10/0x10
\[  +0.000017\]  ? kasan\_save\_alloc\_info+0x1e/0x30
\[  +0.000018\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000014\]  ? \_\_kasan\_kmalloc+0xb1/0xc0
\[  +0.000018\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000013\]  ? \_\_kasan\_check\_read+0x11/0x20
\[  +0.000020\]  amdgpu\_hmm\_unregister+0x34/0x50 \[amdgpu\]
\[  +0.004695\]  amdgpu\_gem\_object\_free+0x66/0xa0 \[amdgpu\]
\[  +0.004534\]  ? \_\_pfx\_amdgpu\_gem\_object\_free+0x10/0x10 \[amdgpu\]
\[  +0.004291\]  ? do\_syscall\_64+0x5f/0xe0
\[  +0.000023\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000017\]  drm\_gem\_object\_free+0x3b/0x50 \[drm\]
\[  +0.000489\]  amdgpu\_gem\_userptr\_ioctl+0x306/0x500 \[amdgpu\]
\[  +0.004295\]  ? \_\_pfx\_amdgpu\_gem\_userptr\_ioctl+0x10/0x10 \[amdgpu\]
\[  +0.004270\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000014\]  ? \_\_this\_cpu\_preempt\_check+0x13/0x20
\[  +0.000015\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000013\]  ? sysvec\_apic\_timer\_interrupt+0x57/0xc0
\[  +0.000020\]  ? srso\_return\_thunk+0x5/0x5f
\[  +0.000014\]  ? asm\_sysvec\_apic\_timer\_interrupt+0x1b/0x20
\[  +0.000022\]  ? drm\_ioctl\_kernel+0x17b/0x1f0 \[drm\]
\[  +0.000496\]  ? \_\_pfx\_amdgpu\_gem\_userptr\_ioctl+0x10/0x10 \[amdgpu\]
\[  +0.004272\]  ? drm\_ioctl\_kernel+0x190/0x1f0 \[drm\]
\[  +0.000492\]  drm\_ioctl\_kernel+0x140/0x1f0 \[drm\]
\[  +0.000497\]  ? \_\_pfx\_amdgpu\_gem\_userptr\_ioctl+0x10/0x10 \[amdgpu\]
\[  +0.004297\]  ? \_\_pfx\_drm\_ioctl\_kernel+0x10/0x10 \[d
---truncated---

## Affected and fixed versions

- Linux: \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 2e13f88e01ae7e28a7e831bf5c2409c4748e0a60; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< e87e08c94c9541b4e18c4c13f2f605935f512605; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< af054a5fb24a144f99895afce9519d709891894c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 22f665ecfd1225afa1309ace623157d12bb9bb0c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 22207fd5c80177b860279653d017474b2812af5e (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 22207fd5c80177b860279653d017474b2812af5e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26656.md
Affected: Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 2e13f88e01ae7e28a7e831bf5c2409c4748e0a60; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < e87e08c94c9541b4e18c4c13f2f605935f512605; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < af054a5fb24a144f99895afce9519d709891894c; >= d38ceaf99ed015f2a0b9af3…
Fixed in: Linux 2e13f88e01ae7e28a7e831bf5c2409c4748e0a60, Linux 22f665ecfd1225afa1309ace623157d12bb9bb0c, Linux 22207fd5c80177b860279653d017474b2812af5e

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-2024-26656 being exploited?

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

### How serious is CVE-2024-26656?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26656?

Linux \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 2e13f88e01ae7e28a7e831bf5c2409c4748e0a60; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< e87e08c94c9541b4e18c4c13f2f605935f512605; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< af054a5fb24a144f99895afce9519d709891894c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 22f665ecfd1225afa1309ace623157d12bb9bb0c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 22207fd5c80177b860279653d017474b2812af5e; Linux 4.2.

### Is there a fix for CVE-2024-26656?

Yes. Fixed in Linux 2e13f88e01ae7e28a7e831bf5c2409c4748e0a60, Linux 22f665ecfd1225afa1309ace623157d12bb9bb0c, Linux 22207fd5c80177b860279653d017474b2812af5e. Upgrade Linux to 22207fd5c80177b860279653d017474b2812af5e or later.

### How do I check if I'm affected by CVE-2024-26656?

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

- patch: <https://git.kernel.org/stable/c/e87e08c94c9541b4e18c4c13f2f605935f512605>
- patch: <https://git.kernel.org/stable/c/af054a5fb24a144f99895afce9519d709891894c>
- patch: <https://git.kernel.org/stable/c/22f665ecfd1225afa1309ace623157d12bb9bb0c>
- patch: <https://git.kernel.org/stable/c/22207fd5c80177b860279653d017474b2812af5e>
- other: <https://git.kernel.org/stable/c/2e13f88e01ae7e28a7e831bf5c2409c4748e0a60>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## 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-2024-26656>

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