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 866953CCFC0 for ; Wed, 6 May 2026 11:29:37 +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=1778066977; cv=none; b=SeIuk0jRZR8QUTqRvRTNPuf3OJr9ixYE34r6EnB6TIbaTBWfXemiIDnk1V2EIqSWe4uNM8Qj3LEWlkMkDKdPXO443Z2CXc9dVRXAHyl8/Pk85a0jkLKMC0Sdaypld9u0X83j9fmjw+Y7pcPPcj2IFtwvpgd17ZfStPM6h0K8jds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778066977; c=relaxed/simple; bh=tBF7T39ciWkkarYTXkJ8IPsNu4D1AGh5XW/r7wuqpuU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rJnC70XgeusMP0IrlwwZXtpwZItryhu3ug/cb783SwQPB/oGu/B7s+UTR9btrIge3mZtwNm0NBenP3us46NkmqXByqJ2C5Tq20Ca8WACLd9QHlF8R9dzH2up6VdPsuQEcdxFv6tIRu9lfz0GhxLEVz3Phff7vIQIdug+uSM0YZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d6CO6ts0; 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="d6CO6ts0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CED05C2BCB8; Wed, 6 May 2026 11:29:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778066977; bh=tBF7T39ciWkkarYTXkJ8IPsNu4D1AGh5XW/r7wuqpuU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=d6CO6ts0TRZl7YPanwrrAcFdq2GlDrzFd1og93vKQ6jEzLUo1zZxLjJx9RmXx00Vh hDkVxnLfPx/6AlKtUobrqTIfOr6pE0BH3uSCyBjjSJqQMhzZHV0f1LYSfKLUnlw33x 8DNSIDK8yysLgyyw3DeneLEtwKj/T2pz65RJWAOA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43140: HID: magicmouse: Do not crash on missing msc->input Date: Wed, 6 May 2026 13:27:36 +0200 Message-ID: <2026050624-CVE-2026-43140-1367@gregkh> X-Mailer: git-send-email 2.54.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=2876; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/DOQUGsHgDUT718Nxamxq0s1ohyn5fPRciOeB1V9gLw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VefGS/5Oi3/VOMuifOl02z9pkgEGOc2P16T+2Fmp8 L801seqI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyJ4NhfuwF7fWpPvuu//tp 1DGxtO5W922uQwxzBd+em1j8lD9Nd+2uwI23dk+TnvG9GgA= 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: magicmouse: Do not crash on missing msc->input Fake USB devices can send their own report descriptors for which the input_mapping() hook does not get called. In this case, msc->input stays NULL, leading to a crash at a later time. Detect this condition in the input_configured() hook and reject the device. This is not supposed to happen with actual magic mouse devices, but can be provoked by imposing as a magic mouse USB device. The Linux kernel CVE team has assigned CVE-2026-43140 to this issue. Affected and fixed versions =========================== Fixed in 5.10.252 with commit db5ba06e7af9325519a03e52fccf4a9e7c1fd9b2 Fixed in 5.15.202 with commit 165912d4321c692321c02793068d30700b4e0f1a Fixed in 6.1.165 with commit f6a3860241fbb556fd72332fa31c5e787004413b Fixed in 6.6.128 with commit 243e1165eb03aca97d87aafa9c3130593837a1c2 Fixed in 6.12.75 with commit 922bd3e498a4b8e445def6e6ffea2ad3682ad516 Fixed in 6.18.16 with commit 5bbe266272d86c0657e8253600f3d5b74fb7b2ae Fixed in 6.19.6 with commit 36c83c1329dd881f290f7df2feadfb9a21775108 Fixed in 7.0 with commit 17abd396548035fbd6179ee1a431bd75d49676a7 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-43140 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-magicmouse.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/db5ba06e7af9325519a03e52fccf4a9e7c1fd9b2 https://git.kernel.org/stable/c/165912d4321c692321c02793068d30700b4e0f1a https://git.kernel.org/stable/c/f6a3860241fbb556fd72332fa31c5e787004413b https://git.kernel.org/stable/c/243e1165eb03aca97d87aafa9c3130593837a1c2 https://git.kernel.org/stable/c/922bd3e498a4b8e445def6e6ffea2ad3682ad516 https://git.kernel.org/stable/c/5bbe266272d86c0657e8253600f3d5b74fb7b2ae https://git.kernel.org/stable/c/36c83c1329dd881f290f7df2feadfb9a21775108 https://git.kernel.org/stable/c/17abd396548035fbd6179ee1a431bd75d49676a7