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

CVE-2026-19576: Goodix GT9xx Input Driver Buffer Overflow

CVE-2026-19576 is a buffer overflow flaw in the Goodix GT9xx input driver that enables stack memory corruption through malicious touch controller data. This post covers technical details, affected versions, and mitigation steps.

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-19576 Overview

CVE-2026-19576 is a stack-based out-of-bounds write [CWE-787] in the Zephyr RTOS Goodix GT9xx touch controller driver (drivers/input/input_gt911.c). The driver reads a touch point count from the controller's status register, masks it with GT911_TOUCH_POINTS_MSK (0x0F), and uses the resulting value (0–15) as a loop bound without validating it against the configured maximum. A malicious or malfunctioning I2C touch controller can trigger up to 112 bytes of attacker-controlled writes past the end of a stack array sized by CONFIG_INPUT_GT911_MAX_TOUCH_POINTS (default 1, maximum 5). Exploitation requires physical access to substitute or control the I2C peripheral.

Critical Impact

An out-of-bounds stack write with attacker-chosen content executing at kernel privilege on the host MCU, enabling potential control-flow hijack, out-of-bounds reads, and crashes.

Affected Products

  • Zephyr RTOS — drivers/input/input_gt911.c prior to commit 42b52d5
  • Boards using the Goodix GT9xx touch panel driver (pluggable display modules or shields)
  • Deployments with GT9271-class panels that may report more touch points than configured

Discovery Timeline

  • 2026-10-11 - CVE-2026-19576 published to NVD
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-19576

Vulnerability Analysis

The gt911_process() function in the Zephyr input subsystem services the GT9xx touch controller over I2C. It reads a status byte, masks it with GT911_TOUCH_POINTS_MSK (0x0F) to obtain a touch point count, and uses that count directly to index point_reg[], a stack-allocated array sized by CONFIG_INPUT_GT911_MAX_TOUCH_POINTS (Kconfig range 1–5, default 1).

Each loop iteration performs an eight-byte I2C read into point_reg[i]. If the controller reports a count greater than the configured maximum, up to 112 bytes of peer-supplied data overwrite the stack frame of gt911_process() executing in the system workqueue thread. Two subsequent loops also read out of bounds from the same array.

Root Cause

The driver trusted a comment stating the controller had been programmed at init to never report more points than configured. No runtime check enforced that invariant. A spoofed or non-compliant device, or bus corruption on the single status byte, invalidates the assumption and triggers the overflow.

Attack Vector

Exploitation requires physical or hardware-level access to the I2C bus. An attacker substitutes the touch controller with a device that answers initialization probes with a supported product ID and a checksum-valid configuration blob, then returns an inflated touch count during normal operation. The same overflow occurs non-adversarially with GT9271-class panels that ignore the touch-count programming and report up to ten points.

c
 #include <zephyr/input/input.h>
 #include <zephyr/input/input_touch.h>
 #include <zephyr/sys/byteorder.h>
+#include <zephyr/sys/minmax.h>
 #include <zephyr/pm/pm.h>
 
 #include <zephyr/logging/log.h>
// Source: https://github.com/zephyrproject-rtos/zephyr/commit/42b52d571eb2113012c135276693042fd372fdea
// The patch introduces minmax.h to clamp the reported touch count with min()
// against CONFIG_INPUT_GT911_MAX_TOUCH_POINTS before any array indexing.

Detection Methods for CVE-2026-19576

Indicators of Compromise

  • Unexpected resets, hard faults, or stack canary violations originating in the system workqueue thread handling gt911_process().
  • I2C traces showing a GT9xx status byte with the low nibble exceeding CONFIG_INPUT_GT911_MAX_TOUCH_POINTS.
  • Touch controller devices on the bus whose product ID matches a supported GT9xx variant but whose runtime behavior deviates from the init-programmed configuration.

Detection Strategies

  • Audit firmware builds that enable the Zephyr CONFIG_INPUT_GT911 driver and confirm whether the source tree includes commit 42b52d5 or later.
  • Add logic analyzer or bus-monitoring captures on I2C lines connected to pluggable GT9xx touch modules to flag anomalous point-count values.
  • Enable Zephyr stack sentinel and MPU-based stack protection to surface overwrites of the gt911_process() stack frame.

Monitoring Recommendations

  • Instrument the input subsystem to log any reported touch count that exceeds the configured maximum, even after clamping.
  • Track system workqueue crash telemetry across fleet devices for correlated faults tied to touch input events.
  • Review physical security of devices shipped with socketed or shield-mounted touch panels where substitution is feasible.

How to Mitigate CVE-2026-19576

Immediate Actions Required

  • Update affected Zephyr-based firmware to a build containing commit 42b52d5 of drivers/input/input_gt911.c.
  • Rebuild and reflash devices that embed the vulnerable driver and ship them through standard firmware update channels.
  • Inventory deployed hardware to identify boards using pluggable GT9xx touch modules that are at highest risk of substitution.

Patch Information

The upstream fix is published in the Zephyr project as commit 42b52d5 and tracked in advisory GHSA-p7qh-fvwx-f7vr. The patch imports zephyr/sys/minmax.h and clamps the controller-reported touch count with min() against CONFIG_INPUT_GT911_MAX_TOUCH_POINTS before any array indexing.

Workarounds

  • Set CONFIG_INPUT_GT911_MAX_TOUCH_POINTS to its maximum supported value of 5 to reduce (but not eliminate) overflow magnitude on devices that cannot yet be patched.
  • Enable Zephyr stack protection features such as stack canaries (CONFIG_STACK_CANARIES) and MPU-backed stack guards to detect overwrites.
  • Where feasible, replace socketed touch panels with soldered on-PCB parts to remove the physical substitution vector.
bash
# Verify the patched commit is present in your Zephyr source tree
cd zephyr
git log --oneline drivers/input/input_gt911.c | grep 42b52d5

# Confirm minmax.h is included in the driver
grep -n 'sys/minmax.h' drivers/input/input_gt911.c

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.