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

gpio: cdev: fix kernel stack leak to user-space in error path

If we fail to acquire the GPIO chip guard in gpio_desc_to_lineinfo(), we
return immediately before zeroing the info struct we'll end up passing
to the user-space later in lineinfo_get_v1(). This may leak the kernel
stack contents. Make gpio_desc_to_lineinfo() return int so that the
-ENODEV returned on failure to acquire the guard can be propagated to
the callers.

While not strictly necessary: move the memset() before trying to acquire
the SRCU read lock too for good measure.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Information Disclosure
Action: Assess Impact
AI Analysis

Impact

This vulnerability in the Linux kernel allows a kernel stack leak to user space when the GPIO chip guard cannot be acquired in gpio_desc_to_lineinfo(). The code returns early without zeroing the info structure that will later be provided to user‑space via lineinfo_get_v1(), so the stack contents can be exposed. The exposed data may contain sensitive kernel information, such as secret keys or credentials, which constitutes an Information Disclosure weakness (CWE‑200).

Affected Systems

All Linux kernel builds that include the vulnerable gpio character device driver before the patch commit are affected. Since the CPE string identifies the generic Linux kernel (cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*) and no specific version range is given, any kernel release prior to the integration of the commit that adds the memset fix is potentially impacted. Administrators should verify the kernel version against the official commit history or update to a kernel where the change has been applied.

Risk and Exploitability

The CVSS score is not listed, and the EPSS score is unavailable, so the inherent severity and probability are not quantified in the public data. The flaw can be exercised by a local user who can interact with the GPIO subsystem, for example by opening /dev/gpiochipN and invoking lineinfo_get_v1 with a bad descriptor. The attacker would then receive the uninitialized portion of the info structure, which contains kernel stack data. This does not provide privilege escalation but can leak privileged information; it is not currently listed in the CISA KEV catalog or known as an actively exploited vulnerability.

Generated by OpenCVE AI on October 18, 2026 at 17:28 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the stabilised kernel patch that zeroes the info structure before exiting gpio_desc_to_lineinfo() and propagates its error code.
  • Upgrade the operating system to a kernel version that incorporates the commit fixing the leak, such as the latest stable release for the distribution. If an immediate update is not feasible, recompile the kernel from a source tree that includes the patch.
  • Restrict access to the GPIO character device nodes by enforcing appropriate file permissions or SELinux/AppArmor rules, thereby limiting the ability of unprivileged users to trigger the vulnerable code path.

Generated by OpenCVE AI on October 18, 2026 at 17:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 17:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: fix kernel stack leak to user-space in error path If we fail to acquire the GPIO chip guard in gpio_desc_to_lineinfo(), we return immediately before zeroing the info struct we'll end up passing to the user-space later in lineinfo_get_v1(). This may leak the kernel stack contents. Make gpio_desc_to_lineinfo() return int so that the -ENODEV returned on failure to acquire the guard can be propagated to the callers. While not strictly necessary: move the memset() before trying to acquire the SRCU read lock too for good measure.
Title gpio: cdev: fix kernel stack leak to user-space in error path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-18T15:17:46.695Z

Reserved: 2026-09-25T10:25:14.355Z

Link: CVE-2026-98528

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:04.303

Modified: 2026-10-18T16:17:04.303

Link: CVE-2026-98528

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T17:30:16Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor