# CVE-2024-49989: drm/amd/display: fix double free issue during amdgpu module unload

> 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, NVD) `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.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-10-21T18:02:32.507Z
- **Modified:** 2026-06-17T08:00:53.517Z

## Who should check

- Anyone running Linux \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 43c296870740a3a264cdca9f18db12e12e9cfbdb; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< df948b5ba6858d5da34f622d408e5517057cec07; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< cf6f3ebd6312d465fee096d1f58089b177c7c67f; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 7af9e6fa63dbd43a61d4ecc8f59426596a75e507; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 3c0ff4de45ce2c5f7997a1ffa6eefee4b79e6b58; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d
- Anyone running Linux 4.15

## Description

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

drm/amd/display: fix double free issue during amdgpu module unload

Flexible endpoints use DIGs from available inflexible endpoints,
so only the encoders of inflexible links need to be freed.
Otherwise, a double free issue may occur when unloading the
amdgpu module.

\[  279.190523\] RIP: 0010:\_\_slab\_free+0x152/0x2f0
\[  279.190577\] Call Trace:
\[  279.190580\]  \<TASK\>
\[  279.190582\]  ? show\_regs+0x69/0x80
\[  279.190590\]  ? die+0x3b/0x90
\[  279.190595\]  ? do\_trap+0xc8/0xe0
\[  279.190601\]  ? do\_error\_trap+0x73/0xa0
\[  279.190605\]  ? \_\_slab\_free+0x152/0x2f0
\[  279.190609\]  ? exc\_invalid\_op+0x56/0x70
\[  279.190616\]  ? \_\_slab\_free+0x152/0x2f0
\[  279.190642\]  ? asm\_exc\_invalid\_op+0x1f/0x30
\[  279.190648\]  ? dcn10\_link\_encoder\_destroy+0x19/0x30 \[amdgpu\]
\[  279.191096\]  ? \_\_slab\_free+0x152/0x2f0
\[  279.191102\]  ? dcn10\_link\_encoder\_destroy+0x19/0x30 \[amdgpu\]
\[  279.191469\]  kfree+0x260/0x2b0
\[  279.191474\]  dcn10\_link\_encoder\_destroy+0x19/0x30 \[amdgpu\]
\[  279.191821\]  link\_destroy+0xd7/0x130 \[amdgpu\]
\[  279.192248\]  dc\_destruct+0x90/0x270 \[amdgpu\]
\[  279.192666\]  dc\_destroy+0x19/0x40 \[amdgpu\]
\[  279.193020\]  amdgpu\_dm\_fini+0x16e/0x200 \[amdgpu\]
\[  279.193432\]  dm\_hw\_fini+0x26/0x40 \[amdgpu\]
\[  279.193795\]  amdgpu\_device\_fini\_hw+0x24c/0x400 \[amdgpu\]
\[  279.194108\]  amdgpu\_driver\_unload\_kms+0x4f/0x70 \[amdgpu\]
\[  279.194436\]  amdgpu\_pci\_remove+0x40/0x80 \[amdgpu\]
\[  279.194632\]  pci\_device\_remove+0x3a/0xa0
\[  279.194638\]  device\_remove+0x40/0x70
\[  279.194642\]  device\_release\_driver\_internal+0x1ad/0x210
\[  279.194647\]  driver\_detach+0x4e/0xa0
\[  279.194650\]  bus\_remove\_driver+0x6f/0xf0
\[  279.194653\]  driver\_unregister+0x33/0x60
\[  279.194657\]  pci\_unregister\_driver+0x44/0x90
\[  279.194662\]  amdgpu\_exit+0x19/0x1f0 \[amdgpu\]
\[  279.194939\]  \_\_do\_sys\_delete\_module.isra.0+0x198/0x2f0
\[  279.194946\]  \_\_x64\_sys\_delete\_module+0x16/0x20
\[  279.194950\]  do\_syscall\_64+0x58/0x120
\[  279.194954\]  entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x76
\[  279.194980\]  \</TASK\>

## Affected and fixed versions

- Linux: \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 43c296870740a3a264cdca9f18db12e12e9cfbdb; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< df948b5ba6858d5da34f622d408e5517057cec07; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< cf6f3ebd6312d465fee096d1f58089b177c7c67f; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 7af9e6fa63dbd43a61d4ecc8f59426596a75e507; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 3c0ff4de45ce2c5f7997a1ffa6eefee4b79e6b58; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-49989.md
Affected: Linux >= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, < 43c296870740a3a264cdca9f18db12e12e9cfbdb; >= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, < df948b5ba6858d5da34f622d408e5517057cec07; >= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, < cf6f3ebd6312d465fee096d1f58089b177c7c67f; >= 4562236b3bc0a28aeb6ee93…
Fixed in: Linux 43c296870740a3a264cdca9f18db12e12e9cfbdb, Linux 7af9e6fa63dbd43a61d4ecc8f59426596a75e507, Linux 3c0ff4de45ce2c5f7997a1ffa6eefee4b79e6b58, Linux 20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d

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

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

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

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

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

Linux \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 43c296870740a3a264cdca9f18db12e12e9cfbdb; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< df948b5ba6858d5da34f622d408e5517057cec07; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< cf6f3ebd6312d465fee096d1f58089b177c7c67f; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 7af9e6fa63dbd43a61d4ecc8f59426596a75e507; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 3c0ff4de45ce2c5f7997a1ffa6eefee4b79e6b58; \>= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \< 20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d; Linux 4.15.

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

Yes. Fixed in Linux 43c296870740a3a264cdca9f18db12e12e9cfbdb, Linux 7af9e6fa63dbd43a61d4ecc8f59426596a75e507, Linux 3c0ff4de45ce2c5f7997a1ffa6eefee4b79e6b58, Linux 20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d. Upgrade Linux to 20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d or later.

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

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/43c296870740a3a264cdca9f18db12e12e9cfbdb>
- patch: <https://git.kernel.org/stable/c/df948b5ba6858d5da34f622d408e5517057cec07>
- patch: <https://git.kernel.org/stable/c/cf6f3ebd6312d465fee096d1f58089b177c7c67f>
- patch: <https://git.kernel.org/stable/c/7af9e6fa63dbd43a61d4ecc8f59426596a75e507>
- patch: <https://git.kernel.org/stable/c/3c0ff4de45ce2c5f7997a1ffa6eefee4b79e6b58>
- patch: <https://git.kernel.org/stable/c/20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.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-49989>

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