---
id: CVE-2021-47253
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drm/amd/display: Fix potential memory leak in DMUB hw_init

  [Why]
  On resume we perform DMUB hw_init which allocates memory:
  dm_resume->dm_dmub_hw_init->dc_dmub_srv_crea…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drm/amd/display: Fix potential memory leak in DMUB hw_init

  [Why]
  On resume we perform DMUB hw_init which allocates memory:
  dm_resume->dm_dmub_hw_init->dc_dmub_srv_crea…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-401
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 5.10.45
  - 'linux_kernel >= 5.11, < 5.12.12'
  - linux_kernel = 5.13
patched:
  - linux_kernel 5.12.12
published: '2024-05-21'
updated: '2026-08-11'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-47253'
references:
  - url: 'https://git.kernel.org/stable/c/9e8c2af010463197315fa54a6c17e74988b5259c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/aa000f828e60ac15d6340f606ec4a673966f5b0b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c5699e2d863f58221044efdc3fa712dd32d55cde'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9e8c2af010463197315fa54a6c17e74988b5259c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/aa000f828e60ac15d6340f606ec4a673966f5b0b'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/c5699e2d863f58221044efdc3fa712dd32d55cde'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00225
epssPercentile: 0.13451
ingestedAt: '2026-08-11T16:47:02.936Z'
---

## Overview

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

drm/amd/display: Fix potential memory leak in DMUB hw_init

[Why]
On resume we perform DMUB hw_init which allocates memory:
dm_resume->dm_dmub_hw_init->dc_dmub_srv_create->kzalloc
That results in memory leak in suspend/resume scenarios.

[How]
Allocate memory for the DC wrapper to DMUB only if it was not
allocated before.
No need to reallocate it on suspend/resume.

## Affected

- `linux_kernel < 5.10.45`
- `linux_kernel >= 5.11, < 5.12.12`
- `linux_kernel = 5.13`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.12.12`
