CVE-2026-89797

Source
https://cve.org/CVERecord?id=CVE-2026-89797
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89797.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-89797
Downstream
Published
2026-09-16T10:30:28Z
Modified
2026-09-18T03:48:32Z
Summary
power: supply: ab8500_fg: fix use-after-free on remove
Details

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

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

ab8500_fg_remove() destroys the driver workqueue while the threaded interrupt handlers are still armed; they are devm-managed and freed only after ->remove() returns, so a handler that fires in that window queues work on the freed workqueue.

Tear the workqueue down through devm instead, registering its cleanup after the power supply and before the interrupt requests. devm then frees the interrupts first, so the handlers can no longer queue work, before disabling the delayed and plain work items and destroying the workqueue. Disabling the items, rather than cancelling them, keeps them disabled so no producer (including the power-supply external_power_changed callback) can requeue them.

Found by an in-house static analysis tool.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89797.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
13151631b5bd06a1511353bb221079bbd76606c3
Fixed
c660c017dec1fd7cd88e1103c5ae1aae6ce636bf
Fixed
013731074ab6a8d11ec209eee64c5b2656954479
Fixed
75b1e88d34254f4fb7753345e21bfee47abddd7f

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.4.0
Fixed
6.18.51
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.5

Database specific

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