Memory Leak in ab8500_fg_sysfs_init in Kernel

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1002252: power: supply: ab8500: Fix memory leak in ab8500_fg_sysfs_init. Affects Kernel versions >= 8c0984e5a75337df513047ec92a6c09d78e3e5cd, < 41ed61364285ff38bbbe9ca8a45c8372ba72921d. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a crucial component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionality, such as device drivers, memory management, and process scheduling. The ab8500 power supply driver is responsible for managing power-related operations on devices that utilize the ab8500 chip. This vulnerability specifically affects the ab8500_fg_sysfs_init function within the driver.

Vulnerability Detail

The ab8500_fg_sysfs_init function in the ab8500 power supply driver suffers from a memory leak. This vulnerability was introduced in version v4.9 of the Linux Kernel by commit 8c0984e5a75337df513047ec92a6c09d78e3e5cd and was fixed in version v5.4.189 by commit 41ed61364285ff38bbbe9ca8a45c8372ba72921d. When the ab8500_fg_sysfs_init function is called, it allocates memory for sysfs attributes but fails to deallocate it properly, leading to a memory leak. An attacker could potentially exploit this vulnerability to exhaust system memory resources, resulting in a denial-of-service condition.

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 temporary workaround, users can unload the ab8500 power supply driver module to prevent the vulnerable code from being executed. This can be achieved by running the following command as root:

$ rmmod ab8500

However, it is important to note that this workaround will disable power supply functionality for devices that rely on the ab8500 chip.

Conclusion

In conclusion, the ab8500_fg_sysfs_init function in the ab8500 power supply driver within the Linux Kernel suffers from a memory leak vulnerability. This can potentially result in a denial-of-service condition by depleting system memory resources. It is crucial to update the Kernel to version v5.4.189 or later to mitigate this vulnerability. Alternatively, users can unload the ab8500 power supply driver module as a temporary workaround, although this will disable power supply functionality for devices relying on the ab8500 chip. For further assistance, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially lead to a denial-of-service condition by exhausting system memory resources.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there are no known exploits for this vulnerability. However, it is still important to apply the necessary updates to mitigate the risk.

As a temporary workaround, you can unload the ab8500 power supply driver module to prevent the vulnerable code from being executed. However, this will disable power supply functionality for devices that rely on the ab8500 chip.

For further support on vulnerability remediation, you can reach out to info@devnack.com. Our team of experts will be happy to assist you.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback