Skip to main content
Vulnerability Database/CVE-2026-98527

CVE-2026-98527: Linux Kernel GPIO Privilege Escalation

CVE-2026-98527 is a privilege escalation vulnerability in the Linux kernel GPIO subsystem that causes runtime PM reference leaks. This article covers the technical details, affected versions, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98527 Overview

CVE-2026-98527 is a resource management flaw in the Linux kernel's Zynq General Purpose Input/Output (GPIO) driver. The vulnerability lives in the zynq_gpio_request() function, which calls pm_runtime_get_sync() on the request path. When pm_runtime_get_sync() fails, it still increments the runtime power management (PM) usage counter, and the driver returns the error without decrementing it. Because gpiolib does not invoke ->free() after a failed ->request(), the paired pm_runtime_put() in zynq_gpio_free() never runs. The reference count leaks, preventing runtime suspension and keeping the controller clock enabled.

Critical Impact

Repeated request failures leak runtime PM references on Zynq GPIO controllers, blocking runtime suspend and leaving device clocks powered on indefinitely.

Affected Products

  • Linux kernel Zynq GPIO driver (drivers/gpio/gpio-zynq.c)
  • Xilinx Zynq and Zynq UltraScale+ platforms using the in-tree GPIO driver
  • Downstream distributions shipping affected stable kernel branches

Discovery Timeline

  • 2026-10-18 - CVE-2026-98527 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98527

Vulnerability Analysis

The Zynq GPIO driver exposes a request() callback registered with gpiolib. That callback calls pm_runtime_get_sync() to bring the controller out of runtime suspend before servicing the GPIO line. The semantics of pm_runtime_get_sync() require callers to decrement the usage counter on failure, because the counter is incremented before the resume operation is attempted. The Zynq driver omits that cleanup and returns the error directly to gpiolib.

gpiolib treats a failed ->request() as if the line was never claimed, so it does not invoke the driver's ->free() callback. The only pm_runtime_put() paired with the leaked get lives inside zynq_gpio_free(), which is now unreachable along the error path. Each failed request permanently raises the runtime PM reference count by one.

Root Cause

The root cause is a resource leak on the error path, a form of improper resource release following a failed acquisition. The fix replaces pm_runtime_get_sync() with pm_runtime_resume_and_get(), which increments the usage counter only when the resume succeeds. This aligns the request path with the gpiolib contract and removes the need for a manual pm_runtime_put() in the error branch.

Attack Vector

Triggering the leak requires repeated failures of pm_runtime_get_sync() on the Zynq GPIO controller. In practice this is reachable by local processes or kernel subsystems that exercise GPIO request calls while the PM subsystem is in a state that causes resume to fail. The resulting condition is a denial of service through power management: the controller cannot runtime-suspend, its clock remains enabled, and energy consumption grows. See the upstream patches referenced below for the exact code change.

Technical details and the fix are documented in the upstream commits, including Linux Kernel Commit 25c08be2, Linux Kernel Commit a3e9b7f7, and Linux Kernel Commit e9438ab5.

Detection Methods for CVE-2026-98527

Indicators of Compromise

  • Zynq GPIO controller that never enters runtime-suspended state despite being idle, visible in /sys/bus/platform/devices/*gpio*/power/runtime_status.
  • Elevated /sys/bus/platform/devices/*gpio*/power/runtime_usage counter that only grows across GPIO request failures.
  • Zynq GPIO clock remaining enabled in /sys/kernel/debug/clk/clk_summary after all consumers have released their lines.

Detection Strategies

  • Audit kernel versions on Zynq and Zynq UltraScale+ devices against the fixed stable branches referenced in the upstream commits.
  • Correlate gpio-zynq request error returns in dmesg with subsequent runtime PM state to identify leaked references.
  • Run power management regression tests that force pm_runtime_get_sync() failures and assert that runtime_usage returns to zero.

Monitoring Recommendations

  • Monitor runtime PM counters on embedded Zynq fleets and alert on monotonic growth of GPIO controller usage counts.
  • Track clock gating state for the Zynq GPIO block to identify controllers that stop entering low-power states after driver errors.
  • Collect kernel logs from fielded devices and look for repeated zynq_gpio_request failure messages that indicate exposure.

How to Mitigate CVE-2026-98527

Immediate Actions Required

  • Identify kernels on Zynq-based hardware that predate the fix and schedule them for update to a patched stable release.
  • Apply the upstream patch replacing pm_runtime_get_sync() with pm_runtime_resume_and_get() in zynq_gpio_request() for out-of-tree or vendor kernels.
  • Reboot affected devices after patching to clear any already-leaked runtime PM references from the running kernel.

Patch Information

The fix has been merged across multiple stable branches. Review and backport the relevant commit for your kernel line: Linux Kernel Commit 58a417a1, Linux Kernel Commit 60a76cdd, Linux Kernel Commit 6e05f1c6, Linux Kernel Commit 6e20dabf, and Linux Kernel Commit e380fba0.

Workarounds

  • Avoid workloads that repeatedly request Zynq GPIO lines while the PM subsystem is likely to fail resumes.
  • Where feasible, disable runtime PM for the Zynq GPIO controller so that pm_runtime_get_sync() short-circuits and does not leak references.
  • Reboot affected systems periodically to clear accumulated reference counts until the patch is deployed.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.