{"id":"CVE-2023-53310","published":"2025-09-16T16:11:48Z","modified":"2026-05-11T19:42:28Z","title":"power: supply: axp288_fuel_gauge: Fix external_power_changed race","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: axp288_fuel_gauge: Fix external_power_changed race\n\nfuel_gauge_external_power_changed() dereferences info->bat,\nwhich gets sets in axp288_fuel_gauge_probe() like this:\n\n  info->bat = devm_power_supply_register(dev, &fuel_gauge_desc, &psy_cfg);\n\nAs soon as devm_power_supply_register() has called device_add()\nthe external_power_changed callback can get called. So there is a window\nwhere fuel_gauge_external_power_changed() may get called while\ninfo->bat has not been set yet leading to a NULL pointer dereference.\n\nFixing this is easy. The external_power_changed callback gets passed\nthe power_supply which will eventually get stored in info->bat,\nso fuel_gauge_external_power_changed() can simply directly use\nthe passed in psy argument which is always valid.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00117,"percentile":0.01715,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://git.kernel.org/stable/c/0456b912121e45b3ef54abe3135e5dcb541f956c","tags":[]},{"url":"https://git.kernel.org/stable/c/a636c6ba9ce898207f283271cb28511206ab739b","tags":[]},{"url":"https://git.kernel.org/stable/c/f8319774d6f1567d6e7d03653174ab0c82c5c66d","tags":[]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":0.34},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 30abb3d07929137bf72327560e1595508a692c4e, < 0456b912121e45b3ef54abe3135e5dcb541f956c",">= 30abb3d07929137bf72327560e1595508a692c4e, < a636c6ba9ce898207f283271cb28511206ab739b",">= 30abb3d07929137bf72327560e1595508a692c4e, < f8319774d6f1567d6e7d03653174ab0c82c5c66d"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-14T18:24:27.946454Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-59951","exploited":false,"provenance":"source"}}