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

- Severity: Medium 4.7 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2025-09-16T16:11:48.399Z
- Modified: 2026-06-17T06:44:48.960Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 30abb3d07929137bf72327560e1595508a692c4e before 0456b912121e45b3ef54abe3135e5dcb541f956c; from 30abb3d07929137bf72327560e1595508a692c4e before a636c6ba9ce898207f283271cb28511206ab739b; from 30abb3d07929137bf72327560e1595508a692c4e before f8319774d6f1567d6e7d03653174ab0c82c5c66d; 5.18 (not affected: before 5.18; from 6.1.31 up to 6.1.*; from 6.3.5 up to 6.3.*; from 6.4 up to *)
- linux linux_kernel: from 5.18 before 6.1.31; from 6.2 before 6.3.5; 6.4

## Every score

- CISA-ADP: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/0456b912121e45b3ef54abe3135e5dcb541f956c> (patch)
- <https://git.kernel.org/stable/c/a636c6ba9ce898207f283271cb28511206ab739b> (patch)
- <https://git.kernel.org/stable/c/f8319774d6f1567d6e7d03653174ab0c82c5c66d> (patch)

## Sources

- CVE List: [CVE-2023-53310](https://www.cve.org/CVERecord?id=CVE-2023-53310), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53310](https://nvd.nist.gov/vuln/detail/CVE-2023-53310), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53310 · Whole record: https://cve.day/CVE-2023-53310.json · Rebuilt by cve.day 2026-11-25T22:58:34.822Z
