CVEvulnerability
CVE-2021-47253
5.5 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2024-05-21
- Last modified
- 2026-08-11
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-401
Description
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 configurations
• linux linux kernel (< 5.10.45)
• linux linux kernel (>= 5.11 < 5.12.12)
• linux linux kernel 5.13
Related
Weakness · CWE (1)
- CWE-401 Missing Release of Memory after Effective Lifetime weakness
References
- https://git.kernel.org/stable/c/9e8c2af010463197315fa54a6c17e74988b5259c Patch
- https://git.kernel.org/stable/c/aa000f828e60ac15d6340f606ec4a673966f5b0b Patch
- https://git.kernel.org/stable/c/c5699e2d863f58221044efdc3fa712dd32d55cde Patch
- https://git.kernel.org/stable/c/9e8c2af010463197315fa54a6c17e74988b5259c Patch
- https://git.kernel.org/stable/c/aa000f828e60ac15d6340f606ec4a673966f5b0b Patch
- https://git.kernel.org/stable/c/c5699e2d863f58221044efdc3fa712dd32d55cde Patch