Skip to contentSkip to conversation

CVE-2026-99162: gpio: shared: fix use-after-free bug when adding shared proxies

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 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:

gpio: shared: fix use-after-free bug when adding shared proxies

The GPIO lookup table can stay alive for longer than the kobject whose name string's address we're assigning to lookup->dev_id. Fix a potential UAF by duplicating the string.

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

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

	Issue introduced in 6.19 with commit a060b8c511abb0997381b397e52149a5e3e5259a and fixed in 7.2.13 with commit 8861491f8501516429e0e6c9d7a056480047227c
	Issue introduced in 6.19 with commit a060b8c511abb0997381b397e52149a5e3e5259a and fixed in 7.3 with commit bd22f7e63509fa758cf500d9af3e88a3d3df96be

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

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/gpiolib-shared.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/8861491f8501516429e0e6c9d7a056480047227c
	https://git.kernel.org/stable/c/bd22f7e63509fa758cf500d9af3e88a3d3df96be