HID: ft260: fix stack-use-after-return write in I2C read race
In the Linux kernel, the following vulnerability has been resolved: HID: ft260: fix stack-use-after-return write in I2C read race ft260_i2c_read() points dev->read_buf at a caller-supplied buffer (often an on-stack variable), arms a completion and waits up to five seconds for the device to return the data. The HID input callback ft260_raw_event() runs in the input/IRQ path, independent of the dev->lock mutex held by the read path, and copies the device-supplied payload into dev->read_buf after a plain NULL check. These two paths share read_buf, read_idx and read_len with no serialization. If the device delays its response until the read times out, ft260_i2c_read() resets the controller, clears read_buf and returns, unwinding the stack frame the buffer lived in. A response that arrives at that moment lets ft260_raw_event() pass the NULL check and then memcpy() the device-controlled payload into the now-freed stack location, a bounded but attacker-influenced stack-use-after-return write triggerable by malicious or malfunctioning hardware. Add a dedicated spinlock that serializes every access to read_buf, read_idx and read_len. ft260_raw_event() now holds it across the NULL check, the memcpy and the index update, while the read path takes it when arming and when clearing the buffer, so the teardown can no longer slip between the check and the copy.
CVE-2026-80768
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-80768
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6a82582d9fa438045191074856f47165334f2777",
"lessThan": "2b907001e8a83cdb71e899fd3d77ab51e2c03f10",
"versionType": "git"
},
{
"status": "affected",
"version": "6a82582d9fa438045191074856f47165334f2777",
"lessThan": "90e9298f2e4336a0e1ca7eeb173403df78056164",
"versionType": "git"
},
{
"status": "affected",
"version": "6a82582d9fa438045191074856f47165334f2777",
"lessThan": "460514d46e8892189fc933a1b4433811cfa5c309",
"versionType": "git"
},
{
"status": "affected",
"version": "6a82582d9fa438045191074856f47165334f2777",
"lessThan": "5aa5a1b7cc4b4bec5497ad9ef113fdfe37b232f3",
"versionType": "git"
},
{
"status": "affected",
"version": "6a82582d9fa438045191074856f47165334f2777",
"lessThan": "a8e1f970f9040294cfd9100c681c32af6c2aeec0",
"versionType": "git"
},
{
"status": "affected",
"version": "6a82582d9fa438045191074856f47165334f2777",
"lessThan": "d7ffbdc076675c84128d5b904e4d5167fe9f3a7f",
"versionType": "git"
},
{
"status": "affected",
"version": "6a82582d9fa438045191074856f47165334f2777",
"lessThan": "77832d8f1c81d9f84b6b54807fb278586001d754",
"versionType": "git"
},
{
"status": "affected",
"version": "6a82582d9fa438045191074856f47165334f2777",
"lessThan": "bf3e39df3a397fd82967a31d17c4e02c7feab221",
"versionType": "git"
}
],
"programFiles": [
"drivers/hid/hid-ft260.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.13"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.13",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.15.220",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.187",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.156",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.108",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.49",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.11",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2.1",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/hid/hid-ft260.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-80768
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #34789 · Revision 1
- Added to Heist Feed
- Publisher date