In the Linux kernel, the following vulnerability has been resolved: power: supply: bq24257: fix use-after-free on remove The STAT-pin interrupt is… (CVE-2026-89475)
A use-after-free vulnerability in the Linux kernel's power supply driver for bq24257 has been fixed. The issue arises because the STAT-pin interrupt is device-managed and remains armed until after the remove() function returns, allowing a threaded handler to reschedule work on freed memory. The fix involves making the delayed work device-managed and ensuring proper cleanup order to prevent the handler from accessing freed memory.
AI Analysis
Technical Summary
The Linux kernel's power supply driver for bq24257 had a use-after-free vulnerability triggered during device removal. The STAT-pin interrupt is managed by devm and remains active until devm cleanup runs after remove() returns. During remove(), the driver cancels scheduled work, but the threaded interrupt handler can still fire and reschedule this work, causing it to run against freed memory. The fix changes the delayed work to be device-managed with devm_delayed_work_autocancel(), ensuring the interrupt is released before the work is canceled and memory freed, preventing use-after-free conditions. This vulnerability was found by static analysis.
Potential Impact
This vulnerability could lead to use-after-free conditions in kernel memory, potentially causing system instability or crashes. There is no indication of known exploits in the wild. The impact is limited to the affected driver and occurs during device removal.
Mitigation Recommendations
A fix is available and has been applied in the Linux kernel source. Users should update to a kernel version that includes this fix. No additional mitigation is required beyond applying the official patch.
In the Linux kernel, the following vulnerability has been resolved: power: supply: bq24257: fix use-after-free on remove The STAT-pin interrupt is… (CVE-2026-89475)
Description
A use-after-free vulnerability in the Linux kernel's power supply driver for bq24257 has been fixed. The issue arises because the STAT-pin interrupt is device-managed and remains armed until after the remove() function returns, allowing a threaded handler to reschedule work on freed memory. The fix involves making the delayed work device-managed and ensuring proper cleanup order to prevent the handler from accessing freed memory.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's power supply driver for bq24257 had a use-after-free vulnerability triggered during device removal. The STAT-pin interrupt is managed by devm and remains active until devm cleanup runs after remove() returns. During remove(), the driver cancels scheduled work, but the threaded interrupt handler can still fire and reschedule this work, causing it to run against freed memory. The fix changes the delayed work to be device-managed with devm_delayed_work_autocancel(), ensuring the interrupt is released before the work is canceled and memory freed, preventing use-after-free conditions. This vulnerability was found by static analysis.
Potential Impact
This vulnerability could lead to use-after-free conditions in kernel memory, potentially causing system instability or crashes. There is no indication of known exploits in the wild. The impact is limited to the affected driver and occurs during device removal.
Mitigation Recommendations
A fix is available and has been applied in the Linux kernel source. Users should update to a kernel version that includes this fix. No additional mitigation is required beyond applying the official patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pg63-6v2p-p54j
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-89475"]
Threat ID: 6aa4a01c55bf5e2cf5a8672d
Added to database: 09/12/2026, 00:43:08 UTC
Last enriched: 09/12/2026, 01:15:18 UTC
Last updated: 09/12/2026, 01:15:18 UTC
Views: 2
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.