Skip to contentSkip to conversation

CVE-2026-98529: gpio: arizona: Fix runtime PM leak in arizona_gpio_direction_out()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

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

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

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

gpio: arizona: Fix runtime PM leak in arizona_gpio_direction_out()

Switching a persistent GPIO line from input to output acquires a runtime PM reference on the parent device, but if the subsequent regmap_update_bits() fails the reference is never dropped and no later direction_in() can balance it since the direction was never changed. Drop the reference on the update failure path.

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

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

	Issue introduced in 4.13 with commit 27a49ed17e2245cacbdea88ad78b8494653e0338 and fixed in 5.10.271 with commit 40c010c1866382cb63ba7497d6ec74fcc60ab9cf
	Issue introduced in 4.13 with commit 27a49ed17e2245cacbdea88ad78b8494653e0338 and fixed in 5.15.222 with commit 61ed58b745c1186006b8357da651abbb7a6bff17
	Issue introduced in 4.13 with commit 27a49ed17e2245cacbdea88ad78b8494653e0338 and fixed in 6.1.189 with commit 5c8e87f33b68557a725e72f34051299f55c6fa9e
	Issue introduced in 4.13 with commit 27a49ed17e2245cacbdea88ad78b8494653e0338 and fixed in 6.6.158 with commit 9d8d6cddcb7c0b8125f3a9e52492e929674009d8
	Issue introduced in 4.13 with commit 27a49ed17e2245cacbdea88ad78b8494653e0338 and fixed in 6.12.112 with commit 9ee200f484983b0a178c593e57d2fe3e67061ee8
	Issue introduced in 4.13 with commit 27a49ed17e2245cacbdea88ad78b8494653e0338 and fixed in 6.18.55 with commit a9f738487c11fb512dadef097b56020239c21810
	Issue introduced in 4.13 with commit 27a49ed17e2245cacbdea88ad78b8494653e0338 and fixed in 7.2.9 with commit 39748357db26b20a02ea2a25ce48943e6c6d6286
	Issue introduced in 4.13 with commit 27a49ed17e2245cacbdea88ad78b8494653e0338 and fixed in 7.3-rc5 with commit e9d810279f84b30738f7790c0ed15f8dd5b9024a

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

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/gpio/gpio-arizona.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/40c010c1866382cb63ba7497d6ec74fcc60ab9cf
	https://git.kernel.org/stable/c/61ed58b745c1186006b8357da651abbb7a6bff17
	https://git.kernel.org/stable/c/5c8e87f33b68557a725e72f34051299f55c6fa9e
	https://git.kernel.org/stable/c/9d8d6cddcb7c0b8125f3a9e52492e929674009d8
	https://git.kernel.org/stable/c/9ee200f484983b0a178c593e57d2fe3e67061ee8
	https://git.kernel.org/stable/c/a9f738487c11fb512dadef097b56020239c21810
	https://git.kernel.org/stable/c/39748357db26b20a02ea2a25ce48943e6c6d6286
	https://git.kernel.org/stable/c/e9d810279f84b30738f7790c0ed15f8dd5b9024a