Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0A2B5271476 for ; Tue, 16 Sep 2025 13:01:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758027684; cv=none; b=b1CSyg1cMmFa8JG+NRwpIhHxEsgZcXWR88BuEHq8xcBh5tLL7gHEwOS1ZPxLUlgBgkZE6ibvQR/gOPry82q2l3dLPUfpLgonHjv87utRpE2Y86wqoI/iFgrCxkL7rMA1etiAjIZQ5GLh2AupyJtFLz+DU/Ap/vo6/od6jp5tBGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758027684; c=relaxed/simple; bh=1kBaK+20Wli1hCJHiw9aVKWlzx6Yq+DOFQcon3cW3ps=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QJQdQ4/T4G82TossIiw+uXyaXNYbvblXQKZALjw9247iCi66F7OQMqfYIosD3f83JDtxJWEnVEvgHn1Ppx/W0deD0NyHWRVhGzIHB0j12ezNyyZGaKnDuQtB0MKlRbUabkt97FA16afrnN244WPIvdwTmLRfkz1x2i0RWzR6O/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GyB4JiHj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GyB4JiHj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10181C4CEEB; Tue, 16 Sep 2025 13:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758027683; bh=1kBaK+20Wli1hCJHiw9aVKWlzx6Yq+DOFQcon3cW3ps=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GyB4JiHje1jeN+e9Ln8MZpbtYK+9PiyawsWeBDtyJaKoFdLMzKFZ0pzh1O9mkMl/H 9CcbZ0plijT9ncMgCux6n0QJH8OyEo+13XdHRKLew26KnXM71y2C2toykUDg8aWi6Z VZYrikbyX4SiJtDNMTiDz7uwIBTNC7yJpfORMYIA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39809: HID: intel-thc-hid: intel-quicki2c: Fix ACPI dsd ICRS/ISUB length Date: Tue, 16 Sep 2025 15:00:15 +0200 Message-ID: <2025091614-CVE-2025-39809-396d@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3756; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ML/FfUnYzYSQSK+S8FQLJQLMrFRVj6BF0y+KkT3wANk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn4+N+3lng5Xh7Pmcgy6fWhoo9Pv22S4un7XvNXCUaZ x/vHpPSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMJc2ZYsE3hypuIszUBi6O+ bVyp92r1wlkGlQwLLpjnOv6saHMuy93kmLtXQqE9OosJAA== 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-quicki2c: Fix ACPI dsd ICRS/ISUB length The QuickI2C ACPI _DSD methods return ICRS and ISUB data with a trailing byte, making the actual length is one more byte than the structs defined. It caused stack-out-of-bounds and kernel crash: kernel: BUG: KASAN: stack-out-of-bounds in quicki2c_acpi_get_dsd_property.constprop.0+0x111/0x1b0 [intel_quicki2c] kernel: Write of size 12 at addr ffff888106d1f900 by task kworker/u33:2/75 kernel: kernel: CPU: 3 UID: 0 PID: 75 Comm: kworker/u33:2 Not tainted 6.16.0+ #3 PREEMPT(voluntary) kernel: Workqueue: async async_run_entry_fn kernel: Call Trace: kernel: kernel: dump_stack_lvl+0x76/0xa0 kernel: print_report+0xd1/0x660 kernel: ? __pfx__raw_spin_lock_irqsave+0x10/0x10 kernel: ? __kasan_slab_free+0x5d/0x80 kernel: ? kasan_addr_to_slab+0xd/0xb0 kernel: kasan_report+0xe1/0x120 kernel: ? quicki2c_acpi_get_dsd_property.constprop.0+0x111/0x1b0 [intel_quicki2c] kernel: ? quicki2c_acpi_get_dsd_property.constprop.0+0x111/0x1b0 [intel_quicki2c] kernel: kasan_check_range+0x11c/0x200 kernel: __asan_memcpy+0x3b/0x80 kernel: quicki2c_acpi_get_dsd_property.constprop.0+0x111/0x1b0 [intel_quicki2c] kernel: ? __pfx_quicki2c_acpi_get_dsd_property.constprop.0+0x10/0x10 [intel_quicki2c] kernel: quicki2c_get_acpi_resources+0x237/0x730 [intel_quicki2c] [...] kernel: kernel: kernel: The buggy address belongs to stack of task kworker/u33:2/75 kernel: and is located at offset 48 in frame: kernel: quicki2c_get_acpi_resources+0x0/0x730 [intel_quicki2c] kernel: kernel: This frame has 3 objects: kernel: [32, 36) 'hid_desc_addr' kernel: [48, 59) 'i2c_param' kernel: [80, 224) 'i2c_config' ACPI DSD methods return: \_SB.PC00.THC0.ICRS Buffer 000000003fdc947b 001 Len 0C = 0A 00 80 1A 06 00 00 00 00 00 00 00 \_SB.PC00.THC0.ISUB Buffer 00000000f2fcbdc4 001 Len 91 = 00 00 00 00 00 00 00 00 00 00 00 00 Adding reserved padding to quicki2c_subip_acpi_parameter/config. The Linux kernel CVE team has assigned CVE-2025-39809 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 5282e45ccbfa91524944a32d40386c54fdd4d145 and fixed in 6.16.5 with commit 4adce86d4b13d15dec7810967839b931b1598700 Issue introduced in 6.14 with commit 5282e45ccbfa91524944a32d40386c54fdd4d145 and fixed in 6.17-rc4 with commit 1db9df89a213318a48d958385dc1b17b379dc32b 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-2025-39809 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-quicki2c/quicki2c-dev.h 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/4adce86d4b13d15dec7810967839b931b1598700 https://git.kernel.org/stable/c/1db9df89a213318a48d958385dc1b17b379dc32b