HID: ft260: fix stack-use-after-return write in I2C read race

Summary

CVECVE-2026-80768
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-09-04 16:18:02 UTC
Updated2026-09-04 16:18:02 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 6a82582d9fa438045191074856f47165334f2777 2b907001e8a83cdb71e899fd3d77ab51e2c03f10 git Not specified
CNA Linux Linux affected 6a82582d9fa438045191074856f47165334f2777 90e9298f2e4336a0e1ca7eeb173403df78056164 git Not specified
CNA Linux Linux affected 6a82582d9fa438045191074856f47165334f2777 460514d46e8892189fc933a1b4433811cfa5c309 git Not specified
CNA Linux Linux affected 6a82582d9fa438045191074856f47165334f2777 5aa5a1b7cc4b4bec5497ad9ef113fdfe37b232f3 git Not specified
CNA Linux Linux affected 6a82582d9fa438045191074856f47165334f2777 a8e1f970f9040294cfd9100c681c32af6c2aeec0 git Not specified
CNA Linux Linux affected 6a82582d9fa438045191074856f47165334f2777 d7ffbdc076675c84128d5b904e4d5167fe9f3a7f git Not specified
CNA Linux Linux affected 6a82582d9fa438045191074856f47165334f2777 77832d8f1c81d9f84b6b54807fb278586001d754 git Not specified
CNA Linux Linux affected 6a82582d9fa438045191074856f47165334f2777 bf3e39df3a397fd82967a31d17c4e02c7feab221 git Not specified
CNA Linux Linux affected 5.13 Not specified
CNA Linux Linux unaffected 5.13 semver Not specified
CNA Linux Linux unaffected 5.15.220 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.187 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.156 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.108 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.49 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.11 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2.1 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/2b907001e8a83cdb71e899fd3d77ab51e2c03f10 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/90e9298f2e4336a0e1ca7eeb173403df78056164 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bf3e39df3a397fd82967a31d17c4e02c7feab221 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/77832d8f1c81d9f84b6b54807fb278586001d754 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/460514d46e8892189fc933a1b4433811cfa5c309 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a8e1f970f9040294cfd9100c681c32af6c2aeec0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d7ffbdc076675c84128d5b904e4d5167fe9f3a7f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5aa5a1b7cc4b4bec5497ad9ef113fdfe37b232f3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report