Cloudanix VulnDB

CVE-2026-64274

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Jul 25, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A faulty or malicious touchscreen controller can crash certain Linux devices unless the system is updated.

Exploitation
Physical Access
Attacker needs
Physical Access
Complexity
High
Impact
Privilege Gain
Component
OS kernel
Class
Buffer Overflow
Remediation
Patch
Effort
Medium
Patch risk
Low

What it actually does

This is a Linux kernel stack out-of-bounds write in the Goodix touchscreen input driver. The driver allocates a fixed-size stack buffer sized for 10 touch contacts, but it previously trusted a 4-bit contact-count value reported by the touchscreen controller configuration, which can indicate up to 15 contacts. A malicious, counterfeit, malfunctioning, or bus-tampered Goodix-compatible I2C touchscreen controller can cause the driver to read more contact data than the stack buffer can hold, corrupting adjacent kernel stack memory during interrupt/input processing. The most likely technical outcomes are kernel memory corruption, kernel crash, device instability, or denial of service; depending on platform, compiler hardening, kernel configuration, and attacker control over the overwritten bytes, privilege escalation or code execution in kernel context may be theoretically possible but is likely difficult and hardware-dependent.

Why it matters to the business

Systems using affected Linux kernels with Goodix touchscreen hardware may be vulnerable to crashes or instability triggered by a malicious or defective touchscreen controller or I2C bus manipulation. The business risk is highest for laptops, tablets, kiosks, embedded devices, point-of-sale systems, industrial panels, and consumer devices where the touchscreen controller is physically accessible, replaceable, or sourced from an untrusted supply chain. The CVE is not currently listed in CISA KEV, is not known to be used in ransomware campaigns, and has a low EPSS score, so broad internet-scale exploitation is unlikely; however, the flaw can still matter for fleets with physical-access threat models, hardware supply-chain exposure, or unattended public devices.

How an attack unfolds

An attacker needs influence over the Goodix-compatible touchscreen controller or the I2C communication between the controller and the Linux host. This could occur through malicious replacement hardware, counterfeit components, compromised firmware on the touch controller, or physical tampering with the I2C bus. The attacker causes the controller configuration to advertise a maximum touch-contact count greater than the driver's compiled buffer capacity of 10, up to the 4-bit maximum of 15. When the controller later reports a touch event with the inflated number of contacts, the kernel driver accepts the value and performs an I2C read into a stack buffer that is too small for the reported data. The resulting overwrite corrupts kernel stack memory in the input driver path, potentially causing a kernel oops, panic, device reboot, or other undefined behavior. Successful exploitation beyond denial of service would require precise control of the overflow contents and bypassing kernel hardening features, making practical exploitation more specialized than typical remote software vulnerabilities.

How to fix it

Upgrade to a Linux kernel or vendor-maintained kernel package that contains the Goodix driver fix which clamps the device-reported maximum contact count to GOODIX_MAX_CONTACTS. If exact fixed package versions are not provided by the distribution or device vendor, track the vendor advisory for CVE-2026-64274 and install the first kernel update that includes the upstream Goodix input-driver patch. Where immediate patching is not possible, reduce exposure by disabling the Goodix touchscreen driver on systems that do not require it, blocking or removing untrusted touchscreen hardware, preventing physical access to internal I2C buses, and using only trusted replacement parts and firmware. Embedded and appliance vendors should rebuild kernels with the patched driver and validate all hardware variants that use Goodix-compatible controllers.

How to confirm the fix worked

Confirm that the running kernel includes the patched Goodix driver behavior: the device-reported max_touch_num must be clamped to GOODIX_MAX_CONTACTS before it is used to validate runtime touch counts. For source-based validation, inspect the Goodix driver under the Linux input touchscreen driver code and verify that ts->max_touch_num is bounded to 10 after reading the configuration nibble. For package-based validation, verify that the installed kernel version matches a vendor release that explicitly includes the CVE-2026-64274 fix. On systems with Goodix touchscreens, check loaded modules and device enumeration for the Goodix driver, then confirm the updated kernel is booted, not merely installed. If kernel sanitizers or test hardware are available, validate that a controller reporting more than 10 contacts is rejected or clamped and no KASAN stack-out-of-bounds report, kernel oops, or panic occurs.

Typical attack path

  1. Gain physical, supply-chain, firmware, or bus-level influence over a Goodix-compatible touchscreen controller or its I2C traffic.
  2. Configure or emulate the controller so its reported maximum touch-contact count is greater than 10, while remaining within the 4-bit device field.
  3. Trigger a touchscreen input interrupt that reports an excessive number of contacts, such as 11 to 15 contacts.
  4. Cause the Linux Goodix driver to perform an oversized I2C read into the fixed-size on-stack contact buffer.
  5. Corrupt adjacent kernel stack memory, leading to a kernel crash, panic, or potentially more controlled kernel memory corruption on weakly hardened systems.

How to detect it

Detection should focus on identifying exposure and looking for evidence of kernel memory corruption or abnormal Goodix touchscreen behavior. Useful log sources include kernel ring buffer output, persistent system journal logs, crash dumps, pstore/ramoops records, kernel oops and panic logs, endpoint telemetry that records kernel crashes, and hardware inventory showing Goodix touchscreen devices. Search for KASAN or kernel oops reports that mention the Goodix touchscreen driver, the input subsystem, I2C reads, stack out-of-bounds writes, or the function goodix_ts_read_input_report. Also look for repeated Goodix controller resets, malformed input reports, I2C transfer failures, or crashes correlated with touch input activity. Because exploitation requires hardware, firmware, or bus-level influence, absence of network indicators is expected; investigation should include physical tampering checks, recent touchscreen replacements, repair history, counterfeit-part concerns, and firmware provenance for affected devices.

  • KASAN: stack-out-of-bounds
  • BUG: KASAN: stack-out-of-bounds
  • goodix_ts_read_input_report
  • Goodix-TS
  • goodix
  • goodix_ts
  • GDIX1001
  • GDIX1002
  • I2C HID goodix
  • i2c-GDIX
  • kernel panic
  • Oops:
  • Unable to handle kernel paging request
  • general protection fault
  • Call Trace:
  • input: Goodix
  • Goodix Capacitive TouchScreen
  • goodix_i2c_read

What your security team should do

  • Prioritize patching Linux-based touchscreen, kiosk, tablet, embedded, and public-access devices that use Goodix-compatible touch controllers.
  • Ask OS, distribution, and device vendors for the kernel build or firmware image that includes the Goodix contact-count clamp fix if fixed versions are not listed in standard advisories.
  • Inventory systems for Goodix touchscreen driver usage using kernel module, device tree, ACPI, dmesg, and hardware inventory data.
  • For high-risk physical environments, restrict access to device internals and external ports that could enable I2C bus manipulation or malicious peripheral replacement.
  • Temporarily disable the Goodix touchscreen driver on systems where touch input is not operationally required.
  • Review kernel logs for crashes, KASAN findings, or repeated Goodix/I2C input errors that may indicate malformed controller behavior.
  • Treat unexplained kernel panics on Goodix-equipped devices as potentially hardware-triggered and preserve logs before reimaging or replacing components.
  • Update hardware procurement and repair processes to reduce counterfeit or untrusted touchscreen-controller supply-chain risk.

The record

In the Linux kernel, the following vulnerability has been resolved: Input: goodix - clamp the device-reported contact count goodix_ts_read_input_report() copies the number of touch points reported by the device into an on-stack buffer u8 point_data[2 + GOODIX_MAX_CONTACT_SIZE * GOODIX_MAX_CONTACTS]; which is sized for at most GOODIX_MAX_CONTACTS (10) contacts. The only runtime check bounds the per-interrupt count against ts->max_touch_num, but that value is taken verbatim from a 4-bit field of the device configuration block and is never clamped: ts->max_touch_num = ts->config[MAX_CONTACTS_LOC] & 0x0f; The nibble can be 0..15, so a malfunctioning, malicious or counterfeit controller (or an attacker tampering with the I2C bus) can advertise up to 15 contacts. goodix_ts_read_input_report() then accepts a touch_num of up to 15 and the second goodix_i2c_read() writes ts->contact_size * (touch_num - 1) bytes past the one-contact header into point_data - up to 30 bytes (45 with the 9-byte report format) beyond the 92-byte buffer: a stack out-of-bounds write. Clamp max_touch_num to GOODIX_MAX_CONTACTS, the number of contacts point_data[] is sized for, when reading it from the configuration.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities