In the Linux kernel, the following vulnerability has been resolved: Input: touchwin - reset the packet index on every complete packet tw_interrupt()… (CVE-2026-64271)
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.
AI Analysis
Technical Summary
The Linux kernel's touchwin input driver accumulates serial bytes into a fixed three-byte buffer with an index reset only when a full packet is received and the device-controlled second and third bytes match. A malicious or counterfeit Touchwindow peripheral can send non-zero bytes with differing second and third bytes, preventing the index reset and causing the index to exceed the buffer length. This results in an unbounded heap out-of-bounds write, allowing an attacker to overwrite adjacent heap memory one byte at a time. The fix involves resetting the packet index on every completed packet and only reporting events when the two bytes match, aligning with other serio touchscreen drivers.
Potential Impact
An attacker controlling a malicious or malfunctioning Touchwindow device can exploit this vulnerability to perform unbounded heap out-of-bounds writes in kernel memory. This could lead to memory corruption, potential privilege escalation, or system instability. However, exploitation requires physical or logical control over the input device, limiting the attack vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix resets the packet index on every completed packet and reports events only when the two Y bytes match, preventing the out-of-bounds write. Users should monitor for official Linux kernel updates addressing CVE-2026-64271 and apply them promptly once available.
In the Linux kernel, the following vulnerability has been resolved: Input: touchwin - reset the packet index on every complete packet tw_interrupt()… (CVE-2026-64271)
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's touchwin input driver accumulates serial bytes into a fixed three-byte buffer with an index reset only when a full packet is received and the device-controlled second and third bytes match. A malicious or counterfeit Touchwindow peripheral can send non-zero bytes with differing second and third bytes, preventing the index reset and causing the index to exceed the buffer length. This results in an unbounded heap out-of-bounds write, allowing an attacker to overwrite adjacent heap memory one byte at a time. The fix involves resetting the packet index on every completed packet and only reporting events when the two bytes match, aligning with other serio touchscreen drivers.
Potential Impact
An attacker controlling a malicious or malfunctioning Touchwindow device can exploit this vulnerability to perform unbounded heap out-of-bounds writes in kernel memory. This could lead to memory corruption, potential privilege escalation, or system instability. However, exploitation requires physical or logical control over the input device, limiting the attack vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix resets the packet index on every completed packet and reports events only when the two Y bytes match, preventing the out-of-bounds write. Users should monitor for official Linux kernel updates addressing CVE-2026-64271 and apply them promptly once available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v33c-vvwm-9mr7
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64271"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a65420e9c2644c7f8086604
Added to database: 07/25/2026, 23:09:02 UTC
Last enriched: 07/25/2026, 23:41:05 UTC
Last updated: 09/07/2026, 10:52:10 UTC
Views: 46
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.