Skip to contentSkip to conversation

CVE-2026-80711: power: supply: max17040: handle missing status supplier

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

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: max17040: handle missing status supplier

MAX17040 does not report charger state itself, so the driver forwards POWER_SUPPLY_PROP_STATUS to a supplier power supply. If no supplier is registered, power_supply_get_property_from_supplier() returns -ENODEV and leaves the output value untouched.

max17040_get_property() currently ignores that error and returns success, so userspace can read an uninitialized status value from the battery power supply. This happens on systems that use the fuel gauge without a charger supplier relationship in firmware.

Return POWER_SUPPLY_STATUS_UNKNOWN when no supplier provides STATUS, and propagate other supplier lookup errors.

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

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

	Issue introduced in 6.7 with commit f4b782af61ae7bbf93008d5809b0e3a8ac2bb88e and fixed in 6.12.103 with commit 91ac995a6f4ddf4f92b231b080544abf23a9b871
	Issue introduced in 6.7 with commit f4b782af61ae7bbf93008d5809b0e3a8ac2bb88e and fixed in 6.18.44 with commit b039f13e095d28a64ca6b21d0ee5440d8b048f37
	Issue introduced in 6.7 with commit f4b782af61ae7bbf93008d5809b0e3a8ac2bb88e and fixed in 7.1.8 with commit ee2ea0c452edc0930e7395b080dccd5a1cb965e1
	Issue introduced in 6.7 with commit f4b782af61ae7bbf93008d5809b0e3a8ac2bb88e and fixed in 7.2 with commit 725668c6b6aa3971fe850659102c250d0d676e18

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-80711

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/max17040_battery.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/91ac995a6f4ddf4f92b231b080544abf23a9b871
	https://git.kernel.org/stable/c/b039f13e095d28a64ca6b21d0ee5440d8b048f37
	https://git.kernel.org/stable/c/ee2ea0c452edc0930e7395b080dccd5a1cb965e1
	https://git.kernel.org/stable/c/725668c6b6aa3971fe850659102c250d0d676e18