From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794991340; b=DkutzOiibMPrfiJjqVE9PwdBDxx24GIEs/JBtEyTz1aJDTzATpjE83rPXFg+4QFc8Z0f WZopPorrbU5LYa2rryAt+4X1W+SmYObo74v3z2Jt6BCo+nVmfnYKTt4UGHAW5gkZ4EaZb VvookghxW0oxWiszVIjcIvj8JLCeUFy+xkK1IUhgAMv3QdtQvIitKkOeTAfxapYTQ1h9/ YzdiOa/L4UCbQcrZMBwTCDQyMiiOVWyXld9fiqjpnjDBKDblL7mjyuxhoPhVuuiuMZfz3 yUCbHF+oZag29n4frMtvPwGdnu+JH7wbHEC53aUDEcpRsJSkPaAKGx2scQ2s7uDoI3w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794991340; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=w4TLzGD7+E/7puIQvnqJPTxP9KfBugM3q3wq/UdKI8U=; b=Yjvsf5LkNJEYZ/7NTP/SQohts6v4shKDMF80q6PmsoTeGDyoC2yuq4bORSyhKcAx6nbP xC4t7DX2qNN6WVmHY0iwb/FZNu8KKt9PlMtBnpDdk2MtiJ8cozgyQiCLP97IjJWIK6D+M GJ4D6S5F63HIaYw4SqITewF3GzAg02uJyYnP4474Fb2hXmIGl8WMPL5zjmU4OaRsdJ6GG TbpS5ZSv6Uo53MOflkX6S3dzdr8fWUvWmemR59jxQah0uJyyNhTsT6HQRveQ0N8uOXiJ5 mTw7smqP7rhnJmD7c6iZU0wv7HvjrriQK4B5iPUkZGAKLdPyrjyRxSdf2mgjXC5WvRA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wseSmaPs; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DAAF606A31C for ; Wed, 18 Nov 2026 08:42:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wseSmaPs Received: by smtp.kernel.org (Postfix) with ESMTPSA id 406EB1F000C4; Wed, 18 Nov 2026 08:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794991339; bh=w4TLzGD7+E/7puIQvnqJPTxP9KfBugM3q3wq/UdKI8U=; h=From:To:Cc:Subject:Date:Reply-To; b=wseSmaPs/mEWlPsN8YzHItOJ/uYrYNbob0Bop/66DbiomOLqXqubK8th1DxX0WjPp UsuWUBRYebka3ZOp/vPy25tRU58uyob6m1zwdeoLq3Qtzw1IQRD3CP81YTDZVNI0Dq gZxEnwmxBM1gbLtQIgkvsBRL5PCIy9WbiHHtR1HA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99313: HID: logitech-hidpp: fix race condition when accessing stale stack pointer Date: Wed, 18 Nov 2026 09:42:14 +0100 Message-ID: <2026111814-CVE-2026-99313-63fa@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3282; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mhXjZUVDxxZK3+OhhMKeXyqoTXJT2tTPvsC5swO9cAw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl/U57JL+ecxnxydcvaMqGyBVs3/S969KT5X8dtwcmlO 3a89dk5vSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmsuYYw4IDDRKrK67Hfp27 okHW3Xx2c87/ki6GubKxaSJsa9qkrbY2Nq+e93s7h1oOHwA= 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: logitech-hidpp: fix race condition when accessing stale stack pointer The driver uses hidpp->send_receive_buf to point to a stack-allocated buffer in the synchronous command path (__do_hidpp_send_message_sync). However, this pointer is not cleared when the function returns. If an event is processed (e.g. by a different thread) while the send_mutex is held by a new command, but before that command has updated send_receive_buf, the handler (hidpp_raw_hidpp_event) will observe that the mutex is locked and dereference the stale pointer. This results in an out-of-bounds access on a different thread's kernel stack (or a NULL pointer dereference on the very first command). Fix this by: 1. Clearing hidpp->send_receive_buf to NULL before releasing the mutex in the synchronous command path. 2. Moving the assignment of the local 'question' and 'answer' pointers inside the mutex_is_locked() block in the handler, and adding a NULL check before dereferencing. The Linux kernel CVE team has assigned CVE-2026-99313 to this issue. Affected and fixed versions =========================== Fixed in 5.10.271 with commit 0fe696148d2c6486e52220aab822135ed7d05f38 Fixed in 5.15.222 with commit 88effb7680aea4fc9afaf5780a706f5f30d3de42 Fixed in 6.1.189 with commit f427383e734e95af923ac470782ad9a3d1f0c276 Fixed in 6.6.158 with commit 8f282d12550e3beaf3fea782b5befa65f78b3c78 Fixed in 6.12.112 with commit e320e65900f0e3bf2874e6f5091fec29384f4a60 Fixed in 6.18.54 with commit 4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d Fixed in 7.1 with commit e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e 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-99313 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-logitech-hidpp.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/0fe696148d2c6486e52220aab822135ed7d05f38 https://git.kernel.org/stable/c/88effb7680aea4fc9afaf5780a706f5f30d3de42 https://git.kernel.org/stable/c/f427383e734e95af923ac470782ad9a3d1f0c276 https://git.kernel.org/stable/c/8f282d12550e3beaf3fea782b5befa65f78b3c78 https://git.kernel.org/stable/c/e320e65900f0e3bf2874e6f5091fec29384f4a60 https://git.kernel.org/stable/c/4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d https://git.kernel.org/stable/c/e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e