Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43EDE4EBADF for ; Fri, 4 Sep 2026 15:13:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788534819; cv=none; b=s9yy1VVJr3UFsoiVacuxydkDM5yHLjzeopxLEDjqUaYuna4AgD4EJuRRUfjpd6h1OclLirdJZoqA54fRtubNb8wogwk2goTfR4twLS74u1ENYbYeuXsjM7PdQ/LVsCyt7nCszhHBwEWcA5snaFxh3MYmJTsd0sIZ5I91r9mXVPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788534819; c=relaxed/simple; bh=yfMZAzarxMsBisNjOc90N3Qkm3d3OheyBMqRCHop9hM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qd/6sW7H5+HZN2LDy0DJ8IRqB61sxVHsqtUW7tn0nLzXeVXfu1lRkhFarhvymhzAdtE3/UXZQ1TgVSoZDcu47hpc7p4PaU/Y7JobnU+GxEk2zrwAiGLR4MEi2hNZyWyT7R7WfEpk4X3/RW0kpTG945w0sdopS8RIQbijyeZcJLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MGmRS5qy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MGmRS5qy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E16721F00A3D; Fri, 4 Sep 2026 15:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788534817; bh=H7oA60LLxjk2pG05cLcWTilSpbjLlkHVQ9ZLUUcc0nA=; h=From:To:Cc:Subject:Date:Reply-To; b=MGmRS5qyzBe9E3Q+qmRPJpeqrHcBDU1hZ4lS11Wcu/ewbcGryEtQ5CmrtrqUtfal8 EP5W1g/M02t7yIUwiL8RdxEUGzK6mXmTTzgSuQKNoNHfie8EGbIxtfEhYZSJjWn8G0 4pVsKI85Wpy+MSCUaCZ/9AxdNDj0+lZDabUQWhcs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80768: HID: ft260: fix stack-use-after-return write in I2C read race Date: Fri, 4 Sep 2026 17:11:07 +0200 Message-ID: <2026090401-CVE-2026-80768-99af@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4405; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HdfbhqRT297Rm6wqjZnVI5UhQnk42Y/ZTO6UzCyCsgA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmz7rcabrobLDLNIuf2rM9eU7bO8Crj7Hh8XJVh4uOVn ouSL7m6dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE5jswLJh4Wo75WjQzw4ar Jkw7X9esW8l37RnDfAdXphcfzDbeLV49Ya9jYNrs9op7nwE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-80768 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 6a82582d9fa438045191074856f47165334f2777 and fixed in 5.15.220 with commit 2b907001e8a83cdb71e899fd3d77ab51e2c03f10 Issue introduced in 5.13 with commit 6a82582d9fa438045191074856f47165334f2777 and fixed in 6.1.187 with commit 90e9298f2e4336a0e1ca7eeb173403df78056164 Issue introduced in 5.13 with commit 6a82582d9fa438045191074856f47165334f2777 and fixed in 6.6.156 with commit 460514d46e8892189fc933a1b4433811cfa5c309 Issue introduced in 5.13 with commit 6a82582d9fa438045191074856f47165334f2777 and fixed in 6.12.108 with commit 5aa5a1b7cc4b4bec5497ad9ef113fdfe37b232f3 Issue introduced in 5.13 with commit 6a82582d9fa438045191074856f47165334f2777 and fixed in 6.18.49 with commit a8e1f970f9040294cfd9100c681c32af6c2aeec0 Issue introduced in 5.13 with commit 6a82582d9fa438045191074856f47165334f2777 and fixed in 7.1.11 with commit d7ffbdc076675c84128d5b904e4d5167fe9f3a7f Issue introduced in 5.13 with commit 6a82582d9fa438045191074856f47165334f2777 and fixed in 7.2.1 with commit 77832d8f1c81d9f84b6b54807fb278586001d754 Issue introduced in 5.13 with commit 6a82582d9fa438045191074856f47165334f2777 and fixed in 7.3-rc1 with commit bf3e39df3a397fd82967a31d17c4e02c7feab221 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-80768 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/hid/hid-ft260.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/2b907001e8a83cdb71e899fd3d77ab51e2c03f10 https://git.kernel.org/stable/c/90e9298f2e4336a0e1ca7eeb173403df78056164 https://git.kernel.org/stable/c/460514d46e8892189fc933a1b4433811cfa5c309 https://git.kernel.org/stable/c/5aa5a1b7cc4b4bec5497ad9ef113fdfe37b232f3 https://git.kernel.org/stable/c/a8e1f970f9040294cfd9100c681c32af6c2aeec0 https://git.kernel.org/stable/c/d7ffbdc076675c84128d5b904e4d5167fe9f3a7f https://git.kernel.org/stable/c/77832d8f1c81d9f84b6b54807fb278586001d754 https://git.kernel.org/stable/c/bf3e39df3a397fd82967a31d17c4e02c7feab221