CVE-2024-35986 Details
Description
In the Linux kernel, the following vulnerability has been resolved: phy: ti: tusb1210: Resolve charger-det crash if charger psy is unregistered The power_supply frame-work is not really designed for there to be long living in kernel references to power_supply devices. Specifically unregistering a power_supply while some other code has a reference to it triggers a WARN in power_supply_unregister(): WARN_ON(atomic_dec_return(&psy->use_cnt)); Folllowed by the power_supply still getting removed and the backing data freed anyway, leaving the tusb1210 charger-detect code with a dangling reference, resulting in a crash the next time tusb1210_get_online() is called. Fix this by only holding the reference in tusb1210_get_online() freeing it at the end of the function. Note this still leaves a theoretical race window, but it avoids the issue when manually rmmod-ing the charger chip driver during development.
A vulnerability in the Linux kernel's TUSB1210 PHY driver can lead to a crash when a charger power supply is unregistered. This issue arises because the power supply framework does not support long-lived kernel references to power supply devices. Unregistering a power supply while another part of the code holds a reference to it causes a warning and, subsequently, the power supply is removed and its data freed. This leaves the charger detection code with a dangling reference, which crashes the system the next time the charger detection function is called. The vulnerability has been addressed by modifying the driver to manage power supply references more safely, although a theoretical race condition still exists.
The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 29, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.18, < 6.1.90 >= 6.2, < 6.6.30 >= 6.7, < 6.8.9 6.9 rc1 6.9 rc2 6.9 rc3 6.9 rc4 6.9 rc5 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Apr 4, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Oct 29, 2024 | CVE Modified | CISA-ADP |
| May 29, 2024 | CVE Modified | kernel.org |
| May 20, 2024 | New CVE Received | kernel.org |