A use-after-free vulnerability exists in the Linux kernel's power supply driver pm8916_bms_vm due to improper ordering of resource allocation and… (CVE-2026-45882)
A use-after-free vulnerability exists in the Linux kernel's power supply driver pm8916_bms_vm due to improper ordering of resource allocation and deallocation. Specifically, the IRQ is requested before the power_supply handle is registered, causing a race condition where an interrupt can trigger after the power_supply 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 requesting the IRQ only after registering the power_supply handle.
AI Analysis
Technical Summary
The Linux kernel vulnerability CVE-2026-45882 involves a use-after-free condition in the pm8916_bms_vm power supply driver. The root cause is the use of devm_ variants for IRQ request and power_supply registration in the wrong order, leading to the power_supply handle being freed before the IRQ handler is unregistered during device removal. This race condition allows an interrupt to invoke power_supply_changed() with a freed or uninitialized power_supply handle, causing system crashes or memory corruption. The vulnerability also affects the probe phase where interrupts may occur before the power_supply handle is registered. The resolution is to reorder the calls so that the IRQ is requested after the power_supply handle is registered, preventing the race.
Potential Impact
Exploitation of this vulnerability can cause system crashes or silent memory corruption due to use-after-free of the power_supply handle in interrupt context. This impacts system stability and reliability, potentially leading to denial of service or unpredictable behavior. The vulnerability affects local privilege levels with low attack complexity and no user interaction required, with high confidentiality, integrity, and availability impact as per CVSS 3.1 metrics.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves changing the order of resource allocation to request the IRQ after registering the power_supply handle. Until an official patch is available, avoid using affected driver versions or apply any vendor-provided temporary fixes. Monitor vendor advisories for updates.
A use-after-free vulnerability exists in the Linux kernel's power supply driver pm8916_bms_vm due to improper ordering of resource allocation and… (CVE-2026-45882)
Description
A use-after-free vulnerability exists in the Linux kernel's power supply driver pm8916_bms_vm due to improper ordering of resource allocation and deallocation. Specifically, the IRQ is requested before the power_supply handle is registered, causing a race condition where an interrupt can trigger after the power_supply 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 requesting the IRQ only after registering the power_supply handle.
CVSS v3.1
Score 7.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel vulnerability CVE-2026-45882 involves a use-after-free condition in the pm8916_bms_vm power supply driver. The root cause is the use of devm_ variants for IRQ request and power_supply registration in the wrong order, leading to the power_supply handle being freed before the IRQ handler is unregistered during device removal. This race condition allows an interrupt to invoke power_supply_changed() with a freed or uninitialized power_supply handle, causing system crashes or memory corruption. The vulnerability also affects the probe phase where interrupts may occur before the power_supply handle is registered. The resolution is to reorder the calls so that the IRQ is requested after the power_supply handle is registered, preventing the race.
Potential Impact
Exploitation of this vulnerability can cause system crashes or silent memory corruption due to use-after-free of the power_supply handle in interrupt context. This impacts system stability and reliability, potentially leading to denial of service or unpredictable behavior. The vulnerability affects local privilege levels with low attack complexity and no user interaction required, with high confidentiality, integrity, and availability impact as per CVSS 3.1 metrics.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves changing the order of resource allocation to request the IRQ after registering the power_supply handle. Until an official patch is available, avoid using affected driver versions or apply any vendor-provided temporary fixes. Monitor vendor advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2h3q-mh3q-c4fj
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-45882"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a3ef7f027e9c79719035c6f
Added to database: 06/26/2026, 22:06:40 UTC
Last enriched: 06/26/2026, 22:50:57 UTC
Last updated: 07/31/2026, 19:24:49 UTC
Views: 18
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.