A use-after-free vulnerability exists in the Linux kernel's power supply subsystem (cpcap-battery driver). (CVE-2026-45885)
A use-after-free vulnerability exists in the Linux kernel's power supply subsystem (cpcap-battery driver). The issue arises from requesting an IRQ before registering the power_supply handle, causing a race condition during removal where an interrupt handler may access a freed power_supply handle. This can lead to system crashes or memory corruption. A similar race can occur during probe, where an interrupt fires before the power_supply handle is initialized. The fix involves requesting the IRQ only after the power_supply handle registration to prevent this race.
AI Analysis
Technical Summary
The Linux kernel vulnerability CVE-2026-45885 involves a use-after-free condition in the cpcap-battery power supply driver. The root cause is the ordering of resource management: the IRQ is requested before the power_supply handle is registered, leading to a race during device removal. An interrupt can trigger after the power_supply handle is freed but before the IRQ handler is unregistered, causing the handler to call power_supply_changed() with a freed handle. This results in system crashes or silent memory corruption. A similar race during probe can cause use of an uninitialized handle. The resolution is to request the IRQ only after the power_supply handle is registered, ensuring proper allocation and deallocation order.
Potential Impact
Exploitation of this vulnerability can cause system crashes or silent memory corruption due to use-after-free in the power supply interrupt handler. This affects system stability and reliability, potentially leading to denial of service. There are no known exploits in the wild reported. The vulnerability requires local privileges to trigger (local attack vector) and has high impact on confidentiality, integrity, and availability as per CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves changing the order of IRQ request and power_supply handle registration to prevent the race condition. Until an official fix is available, avoid using affected drivers or kernel versions in environments where this vulnerability could be triggered. Monitor vendor advisories for an official patch or update.
A use-after-free vulnerability exists in the Linux kernel's power supply subsystem (cpcap-battery driver). (CVE-2026-45885)
Description
A use-after-free vulnerability exists in the Linux kernel's power supply subsystem (cpcap-battery driver). The issue arises from requesting an IRQ before registering the power_supply handle, causing a race condition during removal where an interrupt handler may access a freed power_supply handle. This can lead to system crashes or memory corruption. A similar race can occur during probe, where an interrupt fires before the power_supply handle is initialized. The fix involves requesting the IRQ only after the power_supply handle registration to prevent this race.
CVSS v3.1
Score 7.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel vulnerability CVE-2026-45885 involves a use-after-free condition in the cpcap-battery power supply driver. The root cause is the ordering of resource management: the IRQ is requested before the power_supply handle is registered, leading to a race during device removal. An interrupt can trigger after the power_supply handle is freed but before the IRQ handler is unregistered, causing the handler to call power_supply_changed() with a freed handle. This results in system crashes or silent memory corruption. A similar race during probe can cause use of an uninitialized handle. The resolution is to request the IRQ only after the power_supply handle is registered, ensuring proper allocation and deallocation order.
Potential Impact
Exploitation of this vulnerability can cause system crashes or silent memory corruption due to use-after-free in the power supply interrupt handler. This affects system stability and reliability, potentially leading to denial of service. There are no known exploits in the wild reported. The vulnerability requires local privileges to trigger (local attack vector) and has high impact on confidentiality, integrity, and availability as per CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves changing the order of IRQ request and power_supply handle registration to prevent the race condition. Until an official fix is available, avoid using affected drivers or kernel versions in environments where this vulnerability could be triggered. Monitor vendor advisories for an official patch or update.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pxv4-rwxf-m755
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-45885"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a3ef7ee27e9c79719034ab8
Added to database: 06/26/2026, 22:06:38 UTC
Last enriched: 06/26/2026, 22:49:17 UTC
Last updated: 07/31/2026, 19:24:49 UTC
Views: 8
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.