Skip to contentSkip to conversation

CVE-2026-99445: power: supply: pf1550: drain IRQ work before unregistering supplies

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

power: supply: pf1550: drain IRQ work before unregistering supplies

The VBUS work calls power_supply_changed(), but its managed cancellation is registered before the supplies. Cleanup can therefore unregister a supply while IRQ-triggered work is still pending.

Commit 838767f50747 ("power: supply: pf1550: Fix use-after-free in power_supply_changed()") moved IRQ requests after supply registration, but left work cancellation before the supplies. That change protects the direct IRQ callbacks, while this fix drains the work they queue.

Register the three work items after both supplies and before the IRQs. Cleanup then frees the IRQ producers, drains the work, and unregisters the supplies.

The teardown ordering issue was found by static analysis.

The Linux kernel CVE team has assigned CVE-2026-99445 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit 4b6b6433a97d5863b5340fc87f866d784fdf0783 and fixed in 7.3.2 with commit 2a3ac39a7a260895d794e0a175e9b9a8d2acd207
	Issue introduced in 6.19 with commit 4b6b6433a97d5863b5340fc87f866d784fdf0783 and fixed in 7.4-rc1 with commit 4856b49317ccd4ce96a0e8970df7d13ce8975a02

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99445

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/power/supply/pf1550-charger.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/2a3ac39a7a260895d794e0a175e9b9a8d2acd207
	https://git.kernel.org/stable/c/4856b49317ccd4ce96a0e8970df7d13ce8975a02