CVE-2023-53310

Source
https://cve.org/CVERecord?id=CVE-2023-53310
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53310.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53310
Downstream
Published
2025-09-16T16:11:48.399Z
Modified
2026-04-02T09:43:58.847787Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
power: supply: axp288_fuel_gauge: Fix external_power_changed race
Details

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

power: supply: axp288fuelgauge: Fix externalpowerchanged race

fuelgaugeexternalpowerchanged() dereferences info->bat, which gets sets in axp288fuelgauge_probe() like this:

info->bat = devmpowersupplyregister(dev, &fuelgaugedesc, &psycfg);

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

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53310.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
30abb3d07929137bf72327560e1595508a692c4e
Fixed
0456b912121e45b3ef54abe3135e5dcb541f956c
Fixed
a636c6ba9ce898207f283271cb28511206ab739b
Fixed
f8319774d6f1567d6e7d03653174ab0c82c5c66d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53310.json"