From mboxrd@z Thu Jan 1 00:00:00 1970 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 EF1EA4AD7C6 for ; Fri, 11 Sep 2026 19:59:14 +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=1789156762; cv=none; b=JEnHE84IHrQDrc916SXd82O9ms7gl0xccxHkkztUp3aXE+pDrQXzbBR5ltFodAIuXUDeKfln2BJzosfzALulto5k6jAQ9P2L5te9O4ck8urJl6rud2Oe0/C8nluWpy0luDjpkdG8Zn/ZxuYTt4HIXoCH14NA5rn/bbpufh6XTRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156762; c=relaxed/simple; bh=z4EJIUtxOKfJ/Jy13qxze7JW8QgPGwb0ErCd5pUe7S4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Iv1ywx1CLgvTSF4/Xq3AbBOJQ48InSDoGAQzzFv6xPauwXDRAIPzVmBA7OLvSdW3T/PxZq7GTMDjyPJZfs7OVjFfbjuOdzLslB3CNc3HrgjkPUeaGFZngowsuhUfAqkYE28+Rt4bXpZRGgZgHOnbSQ2XK+vEO2gHEGQB4GGvajg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oEyPukMw; 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="oEyPukMw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03BDD1F00899; Fri, 11 Sep 2026 19:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156750; bh=a4bHIsO/kT1FPyAnT5q1F0ueEuBcFlA/fQzhbBM728w=; h=From:To:Cc:Subject:Date:Reply-To; b=oEyPukMwRT8AA/w/Y4K8eaSLxjVIPWGTePFXwEULx5walXBRMWQqpid91ubpYTG7+ GoPULhBRsbD7uwzM1e7essLLFHRHNi1ofhr4IiWb0MbZrl0vfudk7hWkfk4+e0jYra tGUk45wX0pfPfdEJtArHKKxRuybrDRODHiePq1p8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89620: HID: intel-thc-hid: intel-quickspi: validate report size before copy Date: Fri, 11 Sep 2026 21:45:09 +0200 Message-ID: <2026091137-CVE-2026-89620-816d@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=3261; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MM6egJCANuuPg0ZtyonHTNy8gNIDTbz03udpSI/XnM8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIgvvGn2auOb1ydy8lLqaCavCPiawH1ztc1yqXD9Bs KgjOmN3RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkQy/Dgh1tBYvaNVQ+XvN6 oXvixY9VzxuvdzIsaHL47ah6ah+r4qxraZ86mfetv7rXGAA= 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: intel-thc-hid: intel-quickspi: validate report size before copy write_cmd_to_txdma() builds an output report in qsdev->report_buf, a heap buffer allocated in quickspi_alloc_report_buf() to the device-descriptor derived max_report_len (a few hundred bytes for a touch controller). It copies the caller-supplied report into that buffer: memcpy(write_buf->content, report_buf, report_buf_len); The HID core caps a report at HID_MAX_BUFFER_SIZE (16384) by default, and quickspi_hid_ll_driver does not set max_buffer_size, so the length reaches the driver unbounded. A hidraw SET_REPORT/SET_FEATURE ioctl carrying a report larger than max_report_len therefore overflows report_buf with attacker-controlled length and content. Record the report_buf allocation size and reject reports that do not fit before copying, matching the equivalent guard in the intel-quicki2c sibling (quicki2c_init_write_buf()) and the hid-goodix-spi fix. write_cmd_to_txdma() writes the output report header ahead of the content in the same buffer, so size the allocation to cover the header as well. That keeps the added bound from rejecting a maximum-sized report. The Linux kernel CVE team has assigned CVE-2026-89620 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 9d8d51735a3af40b722346931a6a1e50227df4b5 and fixed in 6.18.50 with commit 6fcefe71aeb524f6e77fe586fe85d873745e917c Issue introduced in 6.14 with commit 9d8d51735a3af40b722346931a6a1e50227df4b5 and fixed in 7.2.4 with commit ee8ad1bb1e96164d51089b1182f1bd5f187e7baa Issue introduced in 6.14 with commit 9d8d51735a3af40b722346931a6a1e50227df4b5 and fixed in 7.3-rc1 with commit a59cf84441f9a17323c89452cec2bf16724c48a9 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-89620 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/intel-thc-hid/intel-quickspi/pci-quickspi.c drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.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/6fcefe71aeb524f6e77fe586fe85d873745e917c https://git.kernel.org/stable/c/ee8ad1bb1e96164d51089b1182f1bd5f187e7baa https://git.kernel.org/stable/c/a59cf84441f9a17323c89452cec2bf16724c48a9