Memory Leak Vulnerability in perf hist
Summary
GSD-2021-1002416: perf hist: Fix memory leak of a perf_hpp_fmt. Affects Kernel versions < 24a139c105fa0f7f99888cf328bf6a02fc841675. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The perf hist tool is a part of the Linux Kernel package, which is responsible for collecting and analyzing performance data. It provides a way to display and format the recorded data in various formats. The vulnerability identified in perf hist is related to a memory leak issue in the perf_hpp_fmt function. This function is responsible for formatting the output of the perf hist tool. The memory leak occurs when the function is called multiple times without freeing the allocated memory, leading to a gradual depletion of system resources.
Vulnerability Detail
The memory leak vulnerability in perf hist can have several consequences. As the memory leak accumulates over time, it can result in increased memory usage and potential system instability. In extreme cases, it can lead to system crashes or denial-of-service situations. An attacker could potentially exploit this vulnerability by repeatedly triggering the perf hist tool, causing the memory leak to exhaust system resources and disrupt normal system operations. The vulnerability has been fixed in Linux Kernel version v4.19.220 by commit 24a139c105fa0f7f99888cf328bf6a02fc841675.
How To Fix
No fixed version is published for this vulnerability.
To fix the memory leak vulnerability in perf hist, it is recommended to update the Linux Kernel package to version v4.19.220 or later. This can be done by downloading the latest version of the Linux Kernel source code from the official repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it according to the provided instructions. Alternatively, users can wait for their Linux distribution to release an updated package that includes the fix.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround available for this vulnerability. The recommended approach is to apply the fix by updating the Linux Kernel package.
Conclusion
The memory leak vulnerability in perf hist can have serious consequences for system stability and performance. It is crucial to update the Linux Kernel package to the fixed version to mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
perf hist is a tool in the Linux Kernel package used for collecting and analyzing performance data.
The memory leak can lead to increased memory usage, system instability, and potential crashes or denial-of-service situations.
To fix the vulnerability, update the Linux Kernel package to version v4.19.220 or later.
No, there is no specific workaround available. Updating the Linux Kernel package is the recommended approach.
For more details about the vulnerability, refer to the source link: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002416.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.