Memory Leak in ab8500_fg_sysfs_init in Kernel
Summary
GSD-2022-1001545: power: supply: ab8500: Fix memory leak in ab8500_fg_sysfs_init. Affects Kernel versions >= 8c0984e5a75337df513047ec92a6c09d78e3e5cd, < 261041097ab3470f1120b7733cbf472712304d1e. 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 critical component of the Linux operating system that manages communication between hardware and software. It provides essential services and functions for the proper functioning of the system. The ab8500 power supply driver is responsible for managing power-related operations on devices that use the ab8500 power management chip. This vulnerability specifically affects the ab8500_fg_sysfs_init function in the ab8500 power supply driver.
Vulnerability Detail
The ab8500_fg_sysfs_init function in the ab8500 power supply driver in the Kernel suffers from a memory leak. When initializing the sysfs interface for the ab8500 fuel gauge, memory is allocated but not properly freed, leading to a memory leak. An attacker could potentially exploit this vulnerability to exhaust available memory resources, causing system instability or denial of service. This vulnerability was introduced in Kernel version 4.9 and has been fixed in version 5.16.19.
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
There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the Kernel to the latest version.
Conclusion
The memory leak vulnerability in the ab8500_fg_sysfs_init function of the ab8500 power supply driver in the Kernel can lead to memory exhaustion and system instability. It is crucial to update the Kernel to version 5.16.19 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially lead to memory exhaustion, causing system instability or denial of service.
You can use the Vulert Playground (https://vulert.com/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.
No, this vulnerability requires local access to the system.
There are no known instances of this vulnerability being exploited in the wild.
For more details about this vulnerability, you can refer to the vulnerability database entry at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001545.json.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.