CVE-2026-99162

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

Published Oct 28, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel’s GPIO subsystem to add a shared proxy contains a bug where a name string is taken directly from a kernel object and stored in a lookup table. If that object is freed before the string is duplicated, the lookup table holds a dangling reference, creating a use‑after‑free condition. This flaw can cause memory corruption that may trigger a kernel crash or, in the worst case, allow an attacker to execute arbitrary code in kernel mode if they can influence the freed memory.

Affected Systems

All Linux kernel implementations that incorporate the GPIO shared proxy mechanism and were built before the commit that duplicates the name string are affected. This includes the default kernel configurations of most distributions as well as custom builds that have not applied the specific fix commit.

Risk and Exploitability

The EPSS score is < 1 % and the CVSS score is 5.5, and the vulnerability is not listed in the CISA KEV catalog. The flaw is a local kernel vulnerability that requires the attacker to be able to create or manipulate kernel objects; it is not immediately exploitable over the network. If achieved, it could lead to kernel destabilization, privilege escalation, and ultimately control of the host system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the upstream kernel patch that duplicates the name string to avoid the use‑after‑free; the patch source can be found at the provided Git URLs.
  • Compile and install a kernel release that includes this fix, ensuring the running kernel version reflects the patched commit.
  • If your distribution offers a backported security update that includes this change, apply that update to protect your system.

Generated by OpenCVE AI on November 2, 2026 at 03:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
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.
Title gpio: shared: fix use-after-free bug when adding shared proxies
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 28, 2026, 10:35 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 28, 2026, 11:17 AM
Modified
Oct 28, 2026, 11:17 AM
Severity
Moderate
Public date
Oct 28, 2026, 10:35 AM