CVE-2023-53310 power: supply: axp288_fuel_gauge: Fix external_power_changed race

Medium 4.7 Published Updated

A race condition in the Linux kernel AXP288 fuel gauge driver can cause a NULL pointer dereference, leading to a system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-53310?

CVE-2023-53310 is a medium-severity vulnerability in Linux kernel, published on 16 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

power: supply: axp288_fuel_gauge: Fix external_power_changed race

fuel_gauge_external_power_changed() dereferences info->bat, which gets sets in axp288_fuel_gauge_probe() like this:

info->bat = devm_power_supply_register(dev, &fuel_gauge_desc, &psy_cfg);

As soon as devm_power_supply_register() has called device_add() the external_power_changed callback can get called. So there is a window where fuel_gauge_external_power_changed() may get called while info->bat has not been set yet leading to a NULL pointer dereference.

Fixing this is easy. The external_power_changed callback gets passed the power_supply which will eventually get stored in info->bat, so fuel_gauge_external_power_changed() can simply directly use the passed in psy argument which is always valid.

Weakness: CWE-362

Which versions are affected by CVE-2023-53310?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-53310?

Apply the vendor's patch.

Is CVE-2023-53310 being exploited?

There is no known exploitation of CVE-2023-53310 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-53310, DEBIAN-CVE-2023-53310, GHSA-c4mr-qx6r-6753, UBUNTU-CVE-2023-53310.

Is CVE-2023-53310 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free