Technical impact
GPIO syscall handlers in Zephyr RTOS did not validate the pin index supplied by a user‑mode caller. The unchecked pin value was passed straight to the driver where it was used as a shift count and as an array index for per‑pin configuration tables. An attacker could supply an out‑of-range pin value to overwrite function pointers or other kernel data, leading to kernel memory corruption or execution of arbitrary code. This flaw is a classic out‑of‑bounds write scenario (CWE‑787).
Affected Systems
The vulnerability affects Zephyr Project’s Zephyr RTOS when built with CONFIG_USERSPACE enabled. No specific version ranges are listed in the advisory; affected builds are those in which the kernel’s GPIO syscall handlers compile under that symbol and expose an unlocked GPIO device object to a user‑mode task.
Risk and Exploitability
The CVSS score of 7.8 indicates high severity. Because user mode already has a trusted connection to a GPIO device object, a local attacker could trigger the flaw without additional privileges. The EPSS score is unavailable, and the issue is not currently listed in the CISA KEV catalog. By exploiting the unchecked pin index, an attacker can drive the kernel into a state suitable for either privilege escalation or denial of service.