CVE-2021-47253
Assigner: Linux
Published: 2024-05-21T14:19:48.825Z
State: PUBLISHED
descriptions: value: 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: product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 1da177e4c3f4
lessThan: 9e8c2af01046
status: affected
versionType: git
version: 1da177e4c3f4
lessThan: aa000f828e60
status: affected
versionType: git
version: 1da177e4c3f4
lessThan: c5699e2d863f
status: affected
versionType: git
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 5.10.45
lessThanOrEqual: 5.10.*
status: unaffected
versionType: custom
version: 5.12.12
lessThanOrEqual: 5.12.*
status: unaffected
versionType: custom
version: 5.13
lessThanOrEqual: *
status: unaffected
versionType: original_commit_for_fix
title: drm/amd/display: Fix potential memory leak in DMUB hw_init
x_generator: engine: bippy-d175d3acf727