CVE-2023-53310
Last modified
CVE-2023-53310 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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. EPSS estimates a 0.10% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.18, < 6.1.31 | — |
| Linux | Linux Kernel | >= 6.2, < 6.3.5 | — |
| Linux | Linux Kernel | 6.4 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-53310?
How severe is CVE-2023-53310?
How do I fix CVE-2023-53310?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-53305In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-53306In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53307In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-53308In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-53309In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-5331Mattermost fails to properly check the creator of an attache…5.3
- CVE-2023-53311In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-53312In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53313In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53314In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53315In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53316In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2023-53310?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
