Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-19576

MEDIUM · 6.8 CVSS Gepubliceerd: CWE-787

Beschrijving NL

De Goodix GT9xx input driver in drivers/input/input_gt911.c leest het aantal touchpoints uit het statusregister van de controller en maskeert deze met GT911_TOUCH_POINTS_MSK (0x0F), wat een waarde van 0..15 oplevert. In gt911_process() wordt die waarde rechtstreeks gebruikt als de lus gebonden voor vulpunt_reg[], een stapelarray met de grootte CONFIG_INPUT_GT911_MAX_TOUCH_POINTS, waarvan het Kconfig-bereik 1..5 is met een standaardwaarde van 1. Geen andere controle beperkt de telling; de bestuurder vertrouwde alleen op een opmerking die beweerde dat de controller bij init was geprogrammeerd om niet meer punten te melden dan geconfigureerd. Elke lusiteratie geeft een I2C-lezing van acht bytes rechtstreeks in point_reg[i], dus een controller die meer punten rapporteert dan de array bevat, zorgt ervoor dat tot 112 bytes aan door collega's geleverde gegevens na het einde van de array worden geschreven, over het stackframe van gt911_process() in de werkvoorraadthread van het systeem. Twee verdere lussen lezen dan buiten de grenzen van dezelfde array. Het activeren ervan vereist controle over, of de mogelijkheid om de I2C-aanraakcontroller te vervangen — plausibel op de vele ondersteunde borden waar het GT9xx-paneel een insteekbare weergavemodule of afscherming is in plaats van een on-PCB-onderdeel; een vervalst apparaat hoeft alleen de init-sondes te beantwoorden met een ondersteunde product-ID en een checksum-valid config-blob. Dezelfde overloop kan ook niet-tegenstrijdig optreden, met een GT9271-klasse paneel dat de touch-count-programmering van de bestuurder negeert en tot tien punten rapporteert, of met buscorruptie van de enkele statusbyte. De impact is een out-of-bounds stack schrijven met volledig door de aanvaller gekozen inhoud die wordt uitgevoerd op kernelbevoegdheid, d.w.z. potentiële control-flow hijack op de MCU van de host, naast out-of-bounds lezen en crashes. De aanvalsvector is alleen fysieke/lokale hardwaretoegang; er is geen netwerk-, USB- of syscall-pad naar het defect. De fix klemt de gerapporteerde telling met min() tegen CONFIG_INPUT_GT911_MAX_TOUCH_POINTS vóór elke array-indexering.

Origineel (Engels) tonen

The Goodix GT9xx input driver in drivers/input/input_gt911.c reads the touch point count from the controller's status register and masks it with GT911_TOUCH_POINTS_MSK (0x0F), yielding a value of 0..15. In gt911_process() that value is used directly as the loop bound for filling point_reg[], a stack array sized to CONFIG_INPUT_GT911_MAX_TOUCH_POINTS, whose Kconfig range is 1..5 with a default of 1. No other check constrains the count; the driver relied only on a comment asserting that the controller had been programmed at init to report no more points than configured.

Each loop iteration issues an I2C read of eight bytes straight into point_reg[i], so a controller that reports more points than the array holds causes up to 112 bytes of peer-supplied data to be written past the end of the array, over the stack frame of gt911_process() in the system workqueue thread. Two further loops then read out of bounds from the same array. Triggering it requires control of, or the ability to substitute, the I2C touch controller — plausible on the many supported boards where the GT9xx panel is a pluggable display module or shield rather than an on-PCB part; a spoofed device need only answer the init probes with a supported product ID and a checksum-valid config blob. The same overflow can also occur non-adversarially, with a GT9271-class panel that ignores the driver's touch-count programming and reports up to ten points, or with bus corruption of the single status byte.

The impact is an out-of-bounds stack write with fully attacker-chosen content executing at kernel privilege, i.e. potential control-flow hijack on the host MCU, in addition to out-of-bounds reads and crashes. The attack vector is physical/local hardware access only; there is no network, USB, or syscall path to the defect. The fix clamps the reported count with min() against CONFIG_INPUT_GT911_MAX_TOUCH_POINTS before any array indexing.

References