Cloudanix VulnDB

CVE-2026-64271

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Jul 25, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A specially crafted or faulty touchscreen device could crash or potentially compromise affected Linux systems that use a vulnerable touchscreen driver.

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

What it actually does

CVE-2026-64271 is a Linux kernel heap out-of-bounds write in the Touchwindow serial touchscreen input driver. The interrupt handler accumulates non-zero serial bytes into a fixed three-byte packet buffer, but only resets the packet index when the second and third packet bytes match. A malicious, faulty, or counterfeit Touchwindow-compatible peripheral can send malformed packets where those bytes differ, causing the index to continue increasing past the end of the buffer and overwrite adjacent fields in the heap-allocated driver structure one byte at a time. Because the write occurs in kernel context and the attacker controls the byte stream from the device, the flaw can plausibly cause kernel memory corruption, denial of service, and potentially privilege escalation depending on memory layout, mitigations, and exploit reliability.

Why it matters to the business

Systems that load the affected Touchwindow touchscreen driver can be crashed or potentially compromised by an attached malicious or malfunctioning serial touchscreen-class device. The practical exposure is narrower than a remote network bug because exploitation requires control of, or access to, a relevant peripheral or serial input path. However, impacted embedded Linux systems, kiosks, point-of-sale terminals, industrial consoles, medical workstations, and other devices that use legacy serial touchscreens may face operational outages or device tampering risk. The vulnerability 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; nevertheless, device-facing and physically accessible deployments should treat it as higher priority.

How an attack unfolds

An attacker first needs the target system to use or load the Linux Touchwindow serial touchscreen driver and to accept input from a Touchwindow-compatible serial or serio device. The attacker then connects or emulates a malicious peripheral, or compromises a peripheral in the input path, and sends a stream of non-zero serial bytes arranged as repeated malformed three-byte packets where the second and third bytes do not match. The vulnerable driver appends each byte to its fixed packet buffer and increments its packet index. When the packet length is reached but the validation check fails, the vulnerable code does not reset the index. Continued input causes subsequent bytes to be written beyond the three-byte buffer into adjacent kernel heap memory. In the simplest case, this corrupts driver state and triggers a kernel warning, oops, panic, or device malfunction. With careful shaping of heap layout and byte values, an advanced local or peripheral-level attacker may attempt to turn the corruption into controlled kernel memory manipulation and privilege escalation.

How to fix it

Apply a Linux kernel update that includes the upstream fix for the Touchwindow driver behavior: resetting the packet index after every completed three-byte packet and only reporting an event when the two Y bytes match. Where vendor-specific fixed versions are not yet available, track updates from the Linux distribution, appliance vendor, or embedded-device supplier and deploy the first kernel package that explicitly includes the fix for this issue. If immediate patching is not possible, mitigate by disabling or blacklisting the Touchwindow driver where it is not required, preventing untrusted serial/serio peripherals from being attached, restricting physical access to kiosk and embedded systems, and validating the provenance of touchscreen hardware. For systems that do not use Touchwindow-compatible touchscreens, remove or prevent loading of the driver to eliminate exposure.

How to confirm the fix worked

Confirm remediation by verifying that the running kernel build includes the patched Touchwindow driver source or vendor backport. Check the installed and running kernel versions against the distribution or vendor advisory, not just package availability, because a reboot is usually required for kernel fixes to take effect. Validate exposure by checking whether the Touchwindow driver is built into the kernel, present as a module, loaded at runtime, or bound to a serio/input device. On test systems only, malformed packet fuzzing against the driver should no longer allow the packet index to run past the completed packet boundary and should not produce KASAN, slab, oops, or panic reports. Also confirm that any mitigation, such as module blacklisting, persists across reboot and that required touchscreen functionality is either unaffected or intentionally disabled.

Typical attack path

  1. Identify a Linux system that has the Touchwindow serial touchscreen driver available, loaded, or auto-loadable through serio/input device matching.
  2. Gain physical, supply-chain, maintenance-port, or peripheral-emulation access to the serial touchscreen input path.
  3. Attach, emulate, or modify a Touchwindow-compatible device so it can send attacker-controlled serial byte streams.
  4. Send non-zero malformed packet sequences where the second and third bytes differ, preventing the vulnerable driver from resetting its packet index.
  5. Continue streaming bytes so the driver's packet buffer index advances beyond the three-byte buffer and overwrites adjacent heap memory.
  6. Cause a kernel crash or attempt to shape the heap corruption for more controlled kernel-code execution or privilege escalation.

How to detect it

This issue is not network-exploitable in the usual sense, so detection should focus on host telemetry, kernel logs, device inventory, and physical/peripheral events. Review system logs, persistent journal entries, crash dumps, pstore, netconsole, and kernel panic records for signs of memory corruption occurring near the Touchwindow input driver, especially messages referencing tw_interrupt, touchwin, serio, input device registration, KASAN slab-out-of-bounds, general protection faults, kernel oops, or panic events shortly after serial touchscreen attachment or activity. Check for unexpected loading of the touchwin driver, new serio/input devices, or device attach/detach events on systems that should not use Touchwindow hardware. On systems with kernel sanitizers enabled, KASAN or UBSAN reports are strong indicators of attempted triggering or faulty device behavior. Because attacker-controlled bytes are delivered over a local/peripheral channel, traditional network IDS will generally not provide useful coverage unless the serial device is remotely bridged through another management channel. Treat repeated unexplained kernel crashes correlated with touchscreen interaction, maintenance activity, or serial device changes as suspicious.

  • BUG: KASAN: slab-out-of-bounds in tw_interrupt
  • slab-out-of-bounds in tw_interrupt
  • general protection fault:.*tw_interrupt
  • kernel BUG.*tw_interrupt
  • Oops:.*tw_interrupt
  • panic.*tw_interrupt
  • touchwin
  • Touchwindow
  • /sys/module/touchwin
  • /sys/bus/serio/drivers/touchwin
  • drivers/input/touchscreen/touchwin.c
  • modprobe touchwin
  • insmod touchwin

What your security team should do

  • Inventory Linux systems, embedded appliances, kiosks, and industrial or point-of-sale devices that use serial touchscreen hardware or have the Touchwindow driver enabled.
  • Prioritize patching for physically accessible systems and systems that rely on untrusted, field-replaceable, or third-party peripherals.
  • Apply the vendor kernel update containing the Touchwindow driver fix and reboot systems to ensure the fixed kernel is running.
  • Where the driver is not required, disable or blacklist the Touchwindow module and confirm it cannot auto-load through device attachment.
  • Restrict physical and maintenance-port access to systems with serial input devices, especially public-facing kiosks and embedded consoles.
  • Review kernel logs for prior crashes, KASAN reports, slab corruption, or oops messages involving the Touchwindow driver or tw_interrupt handler.
  • For high-assurance environments, test representative hardware after patching to confirm touchscreen behavior remains functional and malformed input is safely discarded.
  • Monitor distribution and appliance-vendor advisories for exact fixed package versions and backports, since downstream kernel version numbers may not match upstream releases.

The record

In the Linux kernel, the following vulnerability has been resolved: Input: touchwin - reset the packet index on every complete packet tw_interrupt() accumulates each non-zero serial byte into a fixed three-byte buffer with a running index that is only reset once a full packet has been received *and* the device's two Y bytes agree: tw->data[tw->idx++] = data; if (tw->idx == TW_LENGTH && tw->data[1] == tw->data[2]) { ... tw->idx = 0; } The reset is gated on tw->data[1] == tw->data[2], a value the device controls. A malicious, malfunctioning or counterfeit Touchwindow peripheral can stream non-zero bytes whose 2nd and 3rd bytes differ: the index reaches TW_LENGTH without the equality holding, is never reset, and keeps growing, so tw->data[tw->idx++] walks off the end of the three-byte array and the rest of the heap-allocated struct tw, one attacker-chosen byte at a time -- an unbounded, device-driven heap out-of-bounds write. Reset the index on every completed packet and report an event only when the two Y bytes match, like the other serio touchscreen drivers do.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities