Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-47042

MEDIUM 5.5EPSS 6%

drm/amd/display: Free local data after use

Mitigation

  • Upgrade Linux to 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1 or later.

Who should check

  • Anyone running Linux >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 296443139f893b554dddd56a99ba8471ab5802d4; >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1
  • Anyone running Linux 5.12

Vulnerability facts

Affected
Linux >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 296443139f893b554dddd56a99ba8471ab5802d4; >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1; Linux 5.12
Fixed in
Linux 296443139f893b554dddd56a99ba8471ab5802d4, Linux 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.21% chance of exploitation in 30 days (percentile 6, 2026-11-26)
CWE
CWE-401
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Free local data after use Fixes the following memory leak in dc_link_construct(): unreferenced object 0xffffa03e81471400 (size 1024): comm "amd_module_load", pid 2486, jiffies 4294946026 (age 10.544s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000000bdf5c4a>] kmem_cache_alloc_trace+0x30a/0x4a0 [<00000000e7c59f0e>] link_create+0xce/0xac0 [amdgpu] [<000000002fb6c072>] dc_create+0x370/0x720 [amdgpu] [<000000000094d1f3>] amdgpu_dm_init+0x18e/0x17a0 [amdgpu] [<00000000bec048fd>] dm_hw_init+0x12/0x20 [amdgpu] [<00000000a2bb7cf6>] amdgpu_device_init+0x1463/0x1e60 [amdgpu] [<0000000032d3bb13>] amdgpu_driver_load_kms+0x5b/0x330 [amdgpu] [<00000000a27834f9>] amdgpu_pci_probe+0x192/0x280 [amdgpu] [<00000000fec7d291>] local_pci_probe+0x47/0xa0 [<0000000055dbbfa7>] pci_device_probe+0xe3/0x180 [<00000000815da970>] really_probe+0x1c4/0x4e0 [<00000000b4b6974b>] driver_probe_device+0x62/0x150 [<000000000f9ecc61>] device_driver_attach+0x58/0x60 [<000000000f65c843>] __driver_attach+0xd6/0x150 [<000000002f5e3683>] bus_for_each_dev+0x6a/0xc0 [<00000000a1cfc897>] driver_attach+0x1e/0x20

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 3a00c04212d1cfe1426338b78f4ead623508c874, < 296443139f893b554dddd56a99ba8471ab5802d4; >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1—cvelist
Linux5.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-47042. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47042.md
Affected: Linux >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 296443139f893b554dddd56a99ba8471ab5802d4; >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1; Linux 5.12
Fixed in: Linux 296443139f893b554dddd56a99ba8471ab5802d4, Linux 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1

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.

References

FAQ

Is CVE-2021-47042 being exploited?

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

How serious is CVE-2021-47042?

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

Which versions are affected by CVE-2021-47042?

Linux >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 296443139f893b554dddd56a99ba8471ab5802d4; >= 3a00c04212d1cfe1426338b78f4ead623508c874, < 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1; Linux 5.12.

Is there a fix for CVE-2021-47042?

Yes. Fixed in Linux 296443139f893b554dddd56a99ba8471ab5802d4, Linux 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1. Upgrade Linux to 616cf23b6cf40ad6f03ffbddfa1b6c4eb68d8ae1 or later.

How do I check if I'm affected by CVE-2021-47042?

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.

Sponsors