Description
In the Linux kernel, the following vulnerability has been resolved:

power: supply: bq24257: fix use-after-free on remove

The STAT-pin interrupt is devm-managed, so it stays armed until the devm
cleanup that runs after remove() returns. remove() cancels
bq->iilimit_setup_work while the threaded handler can still fire; that
handler reschedules the work and dereferences bq, so the work runs
against freed memory once devm frees bq.

Make the delayed work device-managed with devm_delayed_work_autocancel(),
registered before the interrupt request. The devm cleanup then releases
the interrupt first, so the handler can no longer reschedule the work,
and cancels the work before bq is freed. The explicit
cancel_delayed_work_sync() in remove() is no longer needed and is dropped.

Found by static analysis.
Published: 2026-09-11
Score: 5.2 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Use‑after‑free leading to memory corruption
Action: Patch kernel
AI Analysis

Impact

The vulnerability is a use‑after‑free that occurs when the Linux kernel bq24257 power‑supply driver is removed. The driver registers a STAT‑pin interrupt that remains active until the device‑managed the driver cancels a work queue item, but the interrupt handler may still fire and reschedule that work, dereferencing the driver data structure after it has been freed. Referring to freed memory can cause memory corruption and potentially a kernel crash.

Affected Systems

All Linux kernel installations that include the bq24257 driver before the commit that applies the fix. The advisory does not list specific kernel versions, so any kernel build that contains the driver prior to the change is vulnerable.

Risk and Exploitability

The CVSS score is 5.2, indicating moderate severity. The EPSS score is <1%, and the flaw is not listed in the CISA KEV catalog. Exploitation would likely require local privilege to trigger the removal path, such as an attacker who can drive a device removal or unload the driver. While public exploitation appears unlikely due to the low EPSS, the impact of a successful exploit is significant because it can corrupt kernel memory or crash the system.

Generated by OpenCVE AI on September 13, 2026 at 07:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply an updated Linux kernel package that contains the bq24257 use‑after‑free fix.
  • For custom kernel builds, cherry‑pick or merge commit 47ccbad210f48721c30d69d65b83dc9fff919ca9 before compiling the kernel.
  • If an upgrade is not possible, disable or unload the bq24257 power‑supply driver to eliminate the removal path during operation.

Generated by OpenCVE AI on September 13, 2026 at 07:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 12 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H'}

threat_severity

Moderate


Fri, 11 Sep 2026 23:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: power: supply: bq24257: fix use-after-free on remove The STAT-pin interrupt is devm-managed, so it stays armed until the devm cleanup that runs after remove() returns. remove() cancels bq->iilimit_setup_work while the threaded handler can still fire; that handler reschedules the work and dereferences bq, so the work runs against freed memory once devm frees bq. Make the delayed work device-managed with devm_delayed_work_autocancel(), registered before the interrupt request. The devm cleanup then releases the interrupt first, so the handler can no longer reschedule the work, and cancels the work before bq is freed. The explicit cancel_delayed_work_sync() in remove() is no longer needed and is dropped. Found by static analysis.
Title power: supply: bq24257: fix use-after-free on remove
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-11T19:43:32.537Z

Reserved: 2026-09-11T19:38:34.710Z

Link: CVE-2026-89475

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-11T20:19:28.807

Modified: 2026-09-11T20:19:28.807

Link: CVE-2026-89475

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-11T19:43:32Z

Links: CVE-2026-89475 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-13T07:15:17Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference