CVE-2026-89475

Source
https://cve.org/CVERecord?id=CVE-2026-89475
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89475.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-89475
Downstream
Published
2026-09-11T19:43:32Z
Modified
2026-09-13T03:47:18Z
Summary
power: supply: bq24257: fix use-after-free on remove
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89475.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2219a935963e5eeb19e5abfb99475fcc06bbb804
Fixed
861ec73ce86e2ca18082cc7be4f140a5bbdf1428
Fixed
f495808cdd6d9576965787cf6d9737d0b0e86b73
Fixed
47ccbad210f48721c30d69d65b83dc9fff919ca9
Fixed
9d34c9d660c3d0931d2cc749c46c47cf31f96e48

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89475.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.2.0
Fixed
6.12.109
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.50
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89475.json"