Memory leak in Linux kernel - CVE-2021-47545

 

Memory leak in Linux kernel - CVE-2021-47545

Published: May 30, 2024 / Updated: May 14, 2025


Vulnerability identifier: #VU89930
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-47545
CWE-ID: CWE-401
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to perform a denial of service (DoS) attack.

The vulnerability exists due to memory leak within the fmt_free(), perf_hpp__init() and perf_hpp_list__prepend_sort_field() functions in tools/perf/ui/hist.c. A local user can perform a denial of service (DoS) attack.


Affected software

Linux kernel
openEuler
kernel
python2-perf
kernel-tools-debuginfo
python2-perf-debuginfo
kernel-tools
kernel-devel
bpftool
kernel-source
python3-perf
kernel-debugsource
bpftool-debuginfo
kernel-tools-devel
perf-debuginfo
perf
kernel-debuginfo
python3-perf-debuginfo

How to mitigate CVE-2021-47545

Install update from vendor's website.

Linux kernel - addressed in versions 4.14.257, 4.19.220, 5.4.164, 5.10.84, 5.15.7, 5.16
kernel - update to 4.19.90-2406.1.0.0279
python2-perf - update to 4.19.90-2406.1.0.0279
kernel-tools-debuginfo - update to 4.19.90-2406.1.0.0279
python2-perf-debuginfo - update to 4.19.90-2406.1.0.0279
kernel-tools - update to 4.19.90-2406.1.0.0279
kernel-devel - update to 4.19.90-2406.1.0.0279
bpftool - update to 4.19.90-2406.1.0.0279
kernel-source - update to 4.19.90-2406.1.0.0279
python3-perf - update to 4.19.90-2406.1.0.0279
kernel-debugsource - update to 4.19.90-2406.1.0.0279
bpftool-debuginfo - update to 4.19.90-2406.1.0.0279
kernel-tools-devel - update to 4.19.90-2406.1.0.0279
perf-debuginfo - update to 4.19.90-2406.1.0.0279
perf - update to 4.19.90-2406.1.0.0279
kernel-debuginfo - update to 4.19.90-2406.1.0.0279
python3-perf-debuginfo - update to 4.19.90-2406.1.0.0279

External References

Related Security Bulletins