Memory Leak in amd_sfh_work in Kernel
Summary
GSD-2021-1000793: HID: amd_sfh: Fix memory leak in amd_sfh_work. Affects Kernel versions >= 4b2c53d93a4bc9d52cc0ec354629cfc9dc217f93, < 29beadea66a226d744d5ffdcde6b984623053d24. 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 Kernel is a crucial component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities for the proper functioning of the system. The amd_sfh module is responsible for handling AMD Sensor Fusion Hub devices. These devices integrate various sensors, such as accelerometers and gyroscopes, into a single chip. The amd_sfh_work function within the amd_sfh module is used to perform work on the AMD Sensor Fusion Hub devices. However, a memory leak vulnerability has been identified in this function.
Vulnerability Detail
The memory leak vulnerability in the amd_sfh_work function allows an attacker to cause a continuous allocation of memory without proper deallocation, leading to memory exhaustion. By repeatedly triggering this vulnerability, an attacker can consume all available memory resources, resulting in a denial of service condition. This can severely impact system performance and stability. The vulnerability was introduced in version v5.11 of the Linux Kernel and was fixed in version v5.12.10.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, users can disable the amd_sfh module if it is not required for their system. This can be achieved by blacklisting the module or preventing it from loading during system startup. However, it is important to note that disabling the module may result in the loss of functionality provided by AMD Sensor Fusion Hub devices.
Conclusion
In conclusion, the memory leak vulnerability in the amd_sfh_work function of the Kernel can lead to memory exhaustion and a denial of service condition. It is recommended to update the Linux Kernel to version v5.12.10 or later to fix this vulnerability. Users can also consider disabling the amd_sfh module as a temporary workaround, but this may result in the loss of functionality provided by AMD Sensor Fusion Hub devices. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to memory exhaustion, causing a denial of service condition and impacting system performance and stability.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.
At the time of this report, there is no known exploit for this vulnerability. However, it is essential to apply the recommended fix to mitigate any potential risks.
As a temporary measure, you can disable the amd_sfh module if it is not required for your system. However, it is recommended to update the Linux Kernel to the latest version as soon as possible.
There are no reported incidents related to this vulnerability at the time of this report. However, it is crucial to apply the fix to prevent any potential exploitation.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.