CVE-2026-89797

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

State
Published
Severity
Not scored
Published
Sep 16, 2026
Updated
Oct 19, 2026
Reserved
Sep 11, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 13151631b5bd06a1511353bb221079bbd76606c3 to before c2ce9b8f325f522e10e4d262b37ae49deb83e79bAffected
  • 13151631b5bd06a1511353bb221079bbd76606c3 to before c660c017dec1fd7cd88e1103c5ae1aae6ce636bfAffected
  • 13151631b5bd06a1511353bb221079bbd76606c3 to before 013731074ab6a8d11ec209eee64c5b2656954479Affected
  • 13151631b5bd06a1511353bb221079bbd76606c3 to before 75b1e88d34254f4fb7753345e21bfee47abddd7fAffected
LinuxLinux
  • 3.4Affected
  • before 3.4Not affected
  • 6.12.112 through 6.12.*Not affected
  • 6.18.51 through 6.18.*Not affected
  • 7.2.5 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.