# CVE-2024-56542: drm/amd/display: fix a memleak issue when driver is removed

> 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, CNA) `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.29% (percentile 15, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-12-27T14:11:24.149Z
- **Modified:** 2026-06-17T08:12:20.980Z

## Who should check

- Anyone running Linux \>= 43ebd0faec24652cb529ceefd594c61897059f90, \< e51cbe40b77a32e8698ad8b9582e5b4fce6da364; \>= f59549c7e705be0087d08bc116ccc767b86d8362, \< 5860c637513036a6ffc130950ea98676b591b47c; \>= f59549c7e705be0087d08bc116ccc767b86d8362, \< d4f36e5fd800de7db74c1c4e62baf24a091a5ff6; \>= 6.11.2, \< 6.11.11
- Anyone running Linux 6.12

## Description

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

drm/amd/display: fix a memleak issue when driver is removed

Running "modprobe amdgpu" the second time (followed by a modprobe -r
amdgpu) causes a call trace like:

\[  845.212163\] Memory manager not clean during takedown.
\[  845.212170\] WARNING: CPU: 4 PID: 2481 at drivers/gpu/drm/drm\_mm.c:999 drm\_mm\_takedown+0x2b/0x40
\[  845.212177\] Modules linked in: amdgpu(OE-) amddrm\_ttm\_helper(OE) amddrm\_buddy(OE) amdxcp(OE) amd\_sched(OE) drm\_exec drm\_suballoc\_helper drm\_display\_helper i2c\_algo\_bit amdttm(OE) amdkcl(OE) cec rc\_core sunrpc qrtr intel\_rapl\_msr intel\_rapl\_common snd\_hda\_codec\_hdmi edac\_mce\_amd snd\_hda\_intel snd\_intel\_dspcfg snd\_intel\_sdw\_acpi snd\_usb\_audio snd\_hda\_codec snd\_usbmidi\_lib kvm\_amd snd\_hda\_core snd\_ump mc snd\_hwdep kvm snd\_pcm snd\_seq\_midi snd\_seq\_midi\_event irqbypass crct10dif\_pclmul snd\_rawmidi polyval\_clmulni polyval\_generic ghash\_clmulni\_intel sha256\_ssse3 sha1\_ssse3 snd\_seq aesni\_intel crypto\_simd snd\_seq\_device cryptd snd\_timer mfd\_aaeon asus\_nb\_wmi eeepc\_wmi joydev asus\_wmi snd ledtrig\_audio sparse\_keymap ccp wmi\_bmof input\_leds k10temp i2c\_piix4 platform\_profile rapl soundcore gpio\_amdpt mac\_hid binfmt\_misc msr parport\_pc ppdev lp parport efi\_pstore nfnetlink dmi\_sysfs ip\_tables x\_tables autofs4 hid\_logitech\_hidpp hid\_logitech\_dj hid\_generic usbhid hid ahci xhci\_pci igc crc32\_pclmul libahci xhci\_pci\_renesas video
\[  845.212284\]  wmi \[last unloaded: amddrm\_ttm\_helper(OE)\]
\[  845.212290\] CPU: 4 PID: 2481 Comm: modprobe Tainted: G        W  OE      6.8.0-31-generic \#31-Ubuntu
\[  845.212296\] RIP: 0010:drm\_mm\_takedown+0x2b/0x40
\[  845.212300\] Code: 1f 44 00 00 48 8b 47 38 48 83 c7 38 48 39 f8 75 09 31 c0 31 ff e9 90 2e 86 00 55 48 c7 c7 d0 f6 8e 8a 48 89 e5 e8 f5 db 45 ff \<0f\> 0b 5d 31 c0 31 ff e9 74 2e 86 00 66 0f 1f 84 00 00 00 00 00 90
\[  845.212302\] RSP: 0018:ffffb11302127ae0 EFLAGS: 00010246
\[  845.212305\] RAX: 0000000000000000 RBX: ffff92aa5020fc08 RCX: 0000000000000000
\[  845.212307\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
\[  845.212309\] RBP: ffffb11302127ae0 R08: 0000000000000000 R09: 0000000000000000
\[  845.212310\] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000004
\[  845.212312\] R13: ffff92aa50200000 R14: ffff92aa5020fb10 R15: ffff92aa5020faa0
\[  845.212313\] FS:  0000707dd7c7c080(0000) GS:ffff92b93de00000(0000) knlGS:0000000000000000
\[  845.212316\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  845.212318\] CR2: 00007d48b0aee200 CR3: 0000000115a58000 CR4: 0000000000f50ef0
\[  845.212320\] PKRU: 55555554
\[  845.212321\] Call Trace:
\[  845.212323\]  \<TASK\>
\[  845.212328\]  ? show\_regs+0x6d/0x80
\[  845.212333\]  ? \_\_warn+0x89/0x160
\[  845.212339\]  ? drm\_mm\_takedown+0x2b/0x40
\[  845.212344\]  ? report\_bug+0x17e/0x1b0
\[  845.212350\]  ? handle\_bug+0x51/0xa0
\[  845.212355\]  ? exc\_invalid\_op+0x18/0x80
\[  845.212359\]  ? asm\_exc\_invalid\_op+0x1b/0x20
\[  845.212366\]  ? drm\_mm\_takedown+0x2b/0x40
\[  845.212371\]  amdgpu\_gtt\_mgr\_fini+0xa9/0x130 \[amdgpu\]
\[  845.212645\]  amdgpu\_ttm\_fini+0x264/0x340 \[amdgpu\]
\[  845.212770\]  amdgpu\_bo\_fini+0x2e/0xc0 \[amdgpu\]
\[  845.212894\]  gmc\_v12\_0\_sw\_fini+0x2a/0x40 \[amdgpu\]
\[  845.213036\]  amdgpu\_device\_fini\_sw+0x11a/0x590 \[amdgpu\]
\[  845.213159\]  amdgpu\_driver\_release\_kms+0x16/0x40 \[amdgpu\]
\[  845.213302\]  devm\_drm\_dev\_init\_release+0x5e/0x90
\[  845.213305\]  devm\_action\_release+0x12/0x30
\[  845.213308\]  release\_nodes+0x42/0xd0
\[  845.213311\]  devres\_release\_all+0x97/0xe0
\[  845.213314\]  device\_unbind\_cleanup+0x12/0x80
\[  845.213317\]  device\_release\_driver\_internal+0x230/0x270
\[  845.213319\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5

This is caused by lost memory during early init phase. First time driver
is removed, memory is freed but when second time the driver is inserted,
VBIOS dmub is not active, since the PSP policy is to retain the driver
loaded version on subsequent warm boots. Hence, communication with VBIOS
DMUB fails.

Fix this by aborting further comm
---truncated---

## Affected and fixed versions

- Linux: \>= 43ebd0faec24652cb529ceefd594c61897059f90, \< e51cbe40b77a32e8698ad8b9582e5b4fce6da364; \>= f59549c7e705be0087d08bc116ccc767b86d8362, \< 5860c637513036a6ffc130950ea98676b591b47c; \>= f59549c7e705be0087d08bc116ccc767b86d8362, \< d4f36e5fd800de7db74c1c4e62baf24a091a5ff6; \>= 6.11.2, \< 6.11.11 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 6.11.11 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-56542. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56542.md
Affected: Linux >= 43ebd0faec24652cb529ceefd594c61897059f90, < e51cbe40b77a32e8698ad8b9582e5b4fce6da364; >= f59549c7e705be0087d08bc116ccc767b86d8362, < 5860c637513036a6ffc130950ea98676b591b47c; >= f59549c7e705be0087d08bc116ccc767b86d8362, < d4f36e5fd800de7db74c1c4e62baf24a091a5ff6; >= 6.11.2, < 6.11.11; Linu…
Fixed in: Linux 5860c637513036a6ffc130950ea98676b591b47c, Linux 6.11.11

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-56542 being exploited?

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

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

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

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

Linux \>= 43ebd0faec24652cb529ceefd594c61897059f90, \< e51cbe40b77a32e8698ad8b9582e5b4fce6da364; \>= f59549c7e705be0087d08bc116ccc767b86d8362, \< 5860c637513036a6ffc130950ea98676b591b47c; \>= f59549c7e705be0087d08bc116ccc767b86d8362, \< d4f36e5fd800de7db74c1c4e62baf24a091a5ff6; \>= 6.11.2, \< 6.11.11; Linux 6.12.

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

Yes. Fixed in Linux 5860c637513036a6ffc130950ea98676b591b47c, Linux 6.11.11. Upgrade Linux to 6.11.11 or later.

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

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/e51cbe40b77a32e8698ad8b9582e5b4fce6da364>
- patch: <https://git.kernel.org/stable/c/5860c637513036a6ffc130950ea98676b591b47c>
- patch: <https://git.kernel.org/stable/c/d4f36e5fd800de7db74c1c4e62baf24a091a5ff6>

## 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-56542>

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