A use-after-free vulnerability exists in the Linux kernel power supply driver for bq25980. (CVE-2026-45879)
A use-after-free vulnerability exists in the Linux kernel power supply driver for bq25980. The issue arises from requesting an IRQ before registering the power_supply handle, causing a race condition during removal where an interrupt may trigger after the handle is freed but before the IRQ handler is unregistered. This can lead to system crashes or memory corruption. A similar race can occur during probe if an interrupt fires before the power_supply handle is initialized. The fix involves ensuring the IRQ is requested only after the power_supply handle registration.
AI Analysis
Technical Summary
The Linux kernel's bq25980 power supply driver had a use-after-free vulnerability due to the order of resource management. Using devm_ variants, the IRQ was requested before the power_supply handle was registered, causing the handle to be freed before the IRQ handler was unregistered during device removal. This race condition allows the IRQ handler to call power_supply_changed() with a freed handle, resulting in crashes or memory corruption. Additionally, interrupts firing before handle registration during probe could cause use of uninitialized handles. The vulnerability is fixed by changing the order to request the IRQ after registering the power_supply handle.
Potential Impact
Exploitation of this vulnerability can cause system crashes or silent memory corruption due to use-after-free conditions in the kernel power supply driver. This affects system stability and could potentially be leveraged for privilege escalation or denial of service. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves changing the order of resource allocation to request the IRQ only after the power_supply handle is registered, preventing the race condition. Until an official patch is available, avoid using affected kernel versions in sensitive environments if possible.
A use-after-free vulnerability exists in the Linux kernel power supply driver for bq25980. (CVE-2026-45879)
Description
A use-after-free vulnerability exists in the Linux kernel power supply driver for bq25980. The issue arises from requesting an IRQ before registering the power_supply handle, causing a race condition during removal where an interrupt may trigger after the handle is freed but before the IRQ handler is unregistered. This can lead to system crashes or memory corruption. A similar race can occur during probe if an interrupt fires before the power_supply handle is initialized. The fix involves ensuring the IRQ is requested only after the power_supply handle registration.
CVSS v3.1
Score 7.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's bq25980 power supply driver had a use-after-free vulnerability due to the order of resource management. Using devm_ variants, the IRQ was requested before the power_supply handle was registered, causing the handle to be freed before the IRQ handler was unregistered during device removal. This race condition allows the IRQ handler to call power_supply_changed() with a freed handle, resulting in crashes or memory corruption. Additionally, interrupts firing before handle registration during probe could cause use of uninitialized handles. The vulnerability is fixed by changing the order to request the IRQ after registering the power_supply handle.
Potential Impact
Exploitation of this vulnerability can cause system crashes or silent memory corruption due to use-after-free conditions in the kernel power supply driver. This affects system stability and could potentially be leveraged for privilege escalation or denial of service. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves changing the order of resource allocation to request the IRQ only after the power_supply handle is registered, preventing the race condition. Until an official patch is available, avoid using affected kernel versions in sensitive environments if possible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-ww5g-f76r-4mww
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-45879"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a3ef7ef27e9c79719034b91
Added to database: 06/26/2026, 22:06:39 UTC
Last enriched: 06/26/2026, 22:50:09 UTC
Last updated: 07/31/2026, 19:24:47 UTC
Views: 15
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.