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

pinctrl: mediatek: paris: bypass pinctrl GPIO layer in set GPIO direction

pinctrl_gpio_direction_input() / pinctrl_gpio_direction_output() take
the pinctrl mutex. This causes a gpiochip operations to need to sleep.
Worse yet, the .can_sleep field in the gpiochip is not set. This causes
the shared GPIO proxy to trip over, as it uses gpiod_cansleep() to check
whether it can use a spinlock or needs a mutex. In this case, it ends
up taking a spinlock, then calls pinctrl_gpio_direction_output(), which
takes a mutex. This causes a huge warning.

While this class of Mediatek hardware does not have separate clear/set
registers, the pinctrl context has a spinlock that is taken whenever
a register read-modify-write is done. Also, once the GPIO function is
selected / muxed in, further GPIO operations do not involve pinctrl
operations or state. The GPIO direction and level values do not require
toggling the pinmux or any other pin config options.

Switch to directly calling mtk_pinmux_gpio_set_direction() in the GPIO
set direction callbacks to avoid taking the pinctrl mutex. Drop the
.gpio_set_direction field in mtk_pmxops to signal we are no longer using
the pinctrl GPIO layer for setting the direction.
Published: 2026-09-24
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Race condition leading to kernel instability via unsafe GPIO direction changes
Action: Apply Kernel Patch
AI Analysis

Impact

The Linux kernel driver for Mediatek Paris devices mistakenly acquires the pinctrl mutex during GPIO direction changes, even though the operation may need to sleep and the gpiochip is not marked as able to sleep. The driver’s logic forces a spinlock to be used while a mutex is actually required, causing a race condition and a massive kernel warning. This flaw can lead to unpredictable GPIO state, potential deadlock, and broader kernel instability, effectively a denial‑of‑service scenario rather than direct code execution.

Affected Systems

The flaw resides in the Linux kernel’s pinctrl subsystem for Mediatek hardware. Any system running a kernel that includes this driver and that uses Mediatek Paris devices is susceptible. Specific kernel versions are not listed, but any kernel before the patch that implements the update to mtk_pinmux_gpio_set_direction is likely affected.

Risk and Exploitability

The CVSS score of 5.5 and an EPSS score of < 1% indicate a medium severity with a very low probability of exploitation, and it is not listed in CISA KEV. The attack vector is local; an adversary must be able to trigger GPIO direction changes on Mediatek hardware, such as through privileged user space utilities or driver code. While it may cause instability and is a significant risk for systems handling GPIO, it does not grant remote code execution. Exploitability depends on the presence of Mediatek hardware and the ability of malicious code to invoke the flawed GPIO APIs.

Generated by OpenCVE AI on October 1, 2026 at 13:52 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the patch for the Mediatek pinctrl driver.
  • If an update is not immediately available, avoid performing GPIO direction changes on Mediatek Paris hardware or replace the calls with the driver’s mtk_pinmux_gpio_set_direction API if possible.
  • Continuously monitor kernel logs for the "huge warning" message and plan to apply the corrected kernel version as soon as it is released.

Generated by OpenCVE AI on October 1, 2026 at 13:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 13:15:00 +0000


Thu, 01 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-668

Wed, 30 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-413
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

Low


Fri, 25 Sep 2026 02:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-668

Thu, 24 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: pinctrl: mediatek: paris: bypass pinctrl GPIO layer in set GPIO direction pinctrl_gpio_direction_input() / pinctrl_gpio_direction_output() take the pinctrl mutex. This causes a gpiochip operations to need to sleep. Worse yet, the .can_sleep field in the gpiochip is not set. This causes the shared GPIO proxy to trip over, as it uses gpiod_cansleep() to check whether it can use a spinlock or needs a mutex. In this case, it ends up taking a spinlock, then calls pinctrl_gpio_direction_output(), which takes a mutex. This causes a huge warning. While this class of Mediatek hardware does not have separate clear/set registers, the pinctrl context has a spinlock that is taken whenever a register read-modify-write is done. Also, once the GPIO function is selected / muxed in, further GPIO operations do not involve pinctrl operations or state. The GPIO direction and level values do not require toggling the pinmux or any other pin config options. Switch to directly calling mtk_pinmux_gpio_set_direction() in the GPIO set direction callbacks to avoid taking the pinctrl mutex. Drop the .gpio_set_direction field in mtk_pmxops to signal we are no longer using the pinctrl GPIO layer for setting the direction.
Title pinctrl: mediatek: paris: bypass pinctrl GPIO layer in set GPIO direction
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-21T12:52:56.239Z

Reserved: 2026-09-24T16:01:01.151Z

Link: CVE-2026-97501

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T17:17:27.850

Modified: 2026-10-21T13:21:11.113

Link: CVE-2026-97501

cve-icon Redhat

Severity : Low

Publid Date: 2026-09-24T00:00:00Z

Links: CVE-2026-97501 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T14:00:10Z

Weaknesses
  • CWE-413

    Improper Resource Locking