Skip to contentSkip to conversation

CVE-2026-99049: gpio: xilinx: fix runtime PM leak on request error path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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: xilinx: fix runtime PM leak on request error path

pm_runtime_get_sync() leaves the usage counter incremented even when it fails, and xgpio_request() returns the error without dropping it.

gpiolib does not call ->free() when ->request() fails, so xgpio_free(), which holds the only matching pm_runtime_put(), never runs. The reference is leaked and the controller can no longer runtime-suspend, so its clock stays enabled.

Switch to pm_runtime_resume_and_get(), which only increments the usage counter on success.

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

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

	Issue introduced in 5.12 with commit 26b04774621ed333e8bc56479feb6e31625df58c and fixed in 6.6.160 with commit b07b3925f676640103b3d74b93fc401b1c873d13
	Issue introduced in 5.12 with commit 26b04774621ed333e8bc56479feb6e31625df58c and fixed in 6.12.113 with commit f73ee2bd2293f8cc340061c5229395ace71fc2eb
	Issue introduced in 5.12 with commit 26b04774621ed333e8bc56479feb6e31625df58c and fixed in 6.18.57 with commit a027e0d7765d1531ee39e4dae81951b04f32ba7b
	Issue introduced in 5.12 with commit 26b04774621ed333e8bc56479feb6e31625df58c and fixed in 7.2.11 with commit 2fd6ecda5d1f47cffcfadddb35ee49402162c724
	Issue introduced in 5.12 with commit 26b04774621ed333e8bc56479feb6e31625df58c and fixed in 7.3 with commit ff82fc3a4a1d417dee1229681cc5285986edb1fa

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

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-xilinx.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/b07b3925f676640103b3d74b93fc401b1c873d13
	https://git.kernel.org/stable/c/f73ee2bd2293f8cc340061c5229395ace71fc2eb
	https://git.kernel.org/stable/c/a027e0d7765d1531ee39e4dae81951b04f32ba7b
	https://git.kernel.org/stable/c/2fd6ecda5d1f47cffcfadddb35ee49402162c724
	https://git.kernel.org/stable/c/ff82fc3a4a1d417dee1229681cc5285986edb1fa