# CVE-2023-52912: drm/amdgpu: Fixed bug on error when unloading amdgpu

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.27% (percentile 12, 2026-11-26)
- **Published:** 2024-08-21T06:10:53.481Z
- **Modified:** 2026-06-17T06:43:55.163Z

## Who should check

- Anyone running Linux \>= c9cad937c0c58618fe5b0310fd539a854dc1ae95, \< 9196eb7c52e55749a332974f0081f77d53d60199; \>= c9cad937c0c58618fe5b0310fd539a854dc1ae95, \< 99f1a36c90a7524972be5a028424c57fa17753ee
- Anyone running Linux 5.19

## Description

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

drm/amdgpu: Fixed bug on error when unloading amdgpu

Fixed bug on error when unloading amdgpu.

The error message is as follows:
\[  377.706202\] kernel BUG at drivers/gpu/drm/drm\_buddy.c:278!
\[  377.706215\] invalid opcode: 0000 \[\#1\] PREEMPT SMP NOPTI
\[  377.706222\] CPU: 4 PID: 8610 Comm: modprobe Tainted: G          IOE      6.0.0-thomas \#1
\[  377.706231\] Hardware name: ASUS System Product Name/PRIME Z390-A, BIOS 2004 11/02/2021
\[  377.706238\] RIP: 0010:drm\_buddy\_free\_block+0x26/0x30 \[drm\_buddy\]
\[  377.706264\] Code: 00 00 00 90 0f 1f 44 00 00 48 8b 0e 89 c8 25 00 0c 00 00 3d 00 04 00 00 75 10 48 8b 47 18 48 d3 e0 48 01 47 28 e9 fa fe ff ff \<0f\> 0b 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 41 54 55 48 89 f5 53
\[  377.706282\] RSP: 0018:ffffad2dc4683cb8 EFLAGS: 00010287
\[  377.706289\] RAX: 0000000000000000 RBX: ffff8b1743bd5138 RCX: 0000000000000000
\[  377.706297\] RDX: ffff8b1743bd5160 RSI: ffff8b1743bd5c78 RDI: ffff8b16d1b25f70
\[  377.706304\] RBP: ffff8b1743bd59e0 R08: 0000000000000001 R09: 0000000000000001
\[  377.706311\] R10: ffff8b16c8572400 R11: ffffad2dc4683cf0 R12: ffff8b16d1b25f70
\[  377.706318\] R13: ffff8b16d1b25fd0 R14: ffff8b1743bd59c0 R15: ffff8b16d1b25f70
\[  377.706325\] FS:  00007fec56c72c40(0000) GS:ffff8b1836500000(0000) knlGS:0000000000000000
\[  377.706334\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  377.706340\] CR2: 00007f9b88c1ba50 CR3: 0000000110450004 CR4: 00000000003706e0
\[  377.706347\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[  377.706354\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[  377.706361\] Call Trace:
\[  377.706365\]  \<TASK\>
\[  377.706369\]  drm\_buddy\_free\_list+0x2a/0x60 \[drm\_buddy\]
\[  377.706376\]  amdgpu\_vram\_mgr\_fini+0xea/0x180 \[amdgpu\]
\[  377.706572\]  amdgpu\_ttm\_fini+0x12e/0x1a0 \[amdgpu\]
\[  377.706650\]  amdgpu\_bo\_fini+0x22/0x90 \[amdgpu\]
\[  377.706727\]  gmc\_v11\_0\_sw\_fini+0x26/0x30 \[amdgpu\]
\[  377.706821\]  amdgpu\_device\_fini\_sw+0xa1/0x3c0 \[amdgpu\]
\[  377.706897\]  amdgpu\_driver\_release\_kms+0x12/0x30 \[amdgpu\]
\[  377.706975\]  drm\_dev\_release+0x20/0x40 \[drm\]
\[  377.707006\]  release\_nodes+0x35/0xb0
\[  377.707014\]  devres\_release\_all+0x8b/0xc0
\[  377.707020\]  device\_unbind\_cleanup+0xe/0x70
\[  377.707027\]  device\_release\_driver\_internal+0xee/0x160
\[  377.707033\]  driver\_detach+0x44/0x90
\[  377.707039\]  bus\_remove\_driver+0x55/0xe0
\[  377.707045\]  pci\_unregister\_driver+0x3b/0x90
\[  377.707052\]  amdgpu\_exit+0x11/0x6c \[amdgpu\]
\[  377.707194\]  \_\_x64\_sys\_delete\_module+0x142/0x2b0
\[  377.707201\]  ? fpregs\_assert\_state\_consistent+0x22/0x50
\[  377.707208\]  ? exit\_to\_user\_mode\_prepare+0x3e/0x190
\[  377.707215\]  do\_syscall\_64+0x38/0x90
\[  377.707221\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

## Affected and fixed versions

- Linux: \>= c9cad937c0c58618fe5b0310fd539a854dc1ae95, \< 9196eb7c52e55749a332974f0081f77d53d60199; \>= c9cad937c0c58618fe5b0310fd539a854dc1ae95, \< 99f1a36c90a7524972be5a028424c57fa17753ee (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 99f1a36c90a7524972be5a028424c57fa17753ee or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52912.md
Affected: Linux >= c9cad937c0c58618fe5b0310fd539a854dc1ae95, < 9196eb7c52e55749a332974f0081f77d53d60199; >= c9cad937c0c58618fe5b0310fd539a854dc1ae95, < 99f1a36c90a7524972be5a028424c57fa17753ee; Linux 5.19
Fixed in: Linux 9196eb7c52e55749a332974f0081f77d53d60199, Linux 99f1a36c90a7524972be5a028424c57fa17753ee

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-2023-52912 being exploited?

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

### How serious is CVE-2023-52912?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52912?

Linux \>= c9cad937c0c58618fe5b0310fd539a854dc1ae95, \< 9196eb7c52e55749a332974f0081f77d53d60199; \>= c9cad937c0c58618fe5b0310fd539a854dc1ae95, \< 99f1a36c90a7524972be5a028424c57fa17753ee; Linux 5.19.

### Is there a fix for CVE-2023-52912?

Yes. Fixed in Linux 9196eb7c52e55749a332974f0081f77d53d60199, Linux 99f1a36c90a7524972be5a028424c57fa17753ee. Upgrade Linux to 99f1a36c90a7524972be5a028424c57fa17753ee or later.

### How do I check if I'm affected by CVE-2023-52912?

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/9196eb7c52e55749a332974f0081f77d53d60199>
- patch: <https://git.kernel.org/stable/c/99f1a36c90a7524972be5a028424c57fa17753ee>

## 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-2023-52912>

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