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 1375B4908D7 for ; Fri, 4 Sep 2026 15:15:41 +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=1788534944; cv=none; b=YiPZ31v+YWJigujWpH93ND8NviPmD4L3zCckgbsv3AFB0wG25ZnBxlCK2LVqGRalvLGspPHGcskVjkEjfg+6e2tWBWsaRSCiwzfbJzfS5eStIwYffg0dz25RnYnCJ6X7y6o4Q0/pXY8lo0d4lI8ZMW8MtBBt3DIfYGoV/3t7JNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788534944; c=relaxed/simple; bh=8RaTvXeHVf3ThbopwG+lfI5RBoQqe1OlijARwMYUEK8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VAxz3tnJ87gLfqKwMdhqDTUqzxEcX4XGDdxOPkAIVWmwYubbNXK5wXHnLeS3UyCMz9WThjYyzpu5ob5hUzIC0SoldW5F2NzAdZWwJDlHalfHE14xxFNkUTTaVOenNJgHdoz5+er8zAzkgE/buBONuV24orDiANVhiVrf6pY+fSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FIOMDWlS; 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="FIOMDWlS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EBD51F00A3D; Fri, 4 Sep 2026 15:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788534940; bh=f54oo5WlYbrOtrWRV3zgAo/wzaMXqAebqhww/WTc/OM=; h=From:To:Cc:Subject:Date:Reply-To; b=FIOMDWlSY04XFFxyXLo38fVQvDpvTguNpOfbvszs0fSsoMVpKc/COrGoIfM6F5drs eD7V1zvw4ePCA/CPSaHDxB4mudO6BynycMk3BwHob+LNBSYWMhwnga6B8LShiXMF3y tpChuFGMnDb9riVDCJ15TODjtCHPBGUaDl/a0OuQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80783: HID: magicmouse: prevent unbounded recursion in magicmouse_raw_event() Date: Fri, 4 Sep 2026 17:11:22 +0200 Message-ID: <2026090404-CVE-2026-80783-a7f6@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=4174; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5oQQyIBbal5kDjniS/829rTlp3hoG6EqGcos8XzdInw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmz7ndOcXn4aM2O88llc+2ZE09bcE23z+Te+s3DfCrzt 1UOF/Y6d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHi1jmF/j+aLdlf/yxL7p dyRdRLqFk0J4ihkWXCrw0FKp+S7KpavcoO69LtKsbu0eAA== 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: prevent unbounded recursion in magicmouse_raw_event() magicmouse_raw_event() handles DOUBLE_REPORT_ID (0xf7) packets, which pack two touch reports into one, by splitting the packet and calling itself on each half. The only guard against runaway recursion is a "size < 1" check, which stops zero-sized calls but does not bound the recursion depth. A malicious HID device that matches this driver can send a report starting with DOUBLE_REPORT_ID and filled with the sequence [0xf7, 0x00]. Each level consumes two bytes and recurses on the remainder, so an incoming report of up to HID_MAX_BUFFER_SIZE (16 KiB) drives roughly 8000 nested calls. That easily exhausts the 16 KiB kernel stack, leading to a stack overflow: a panic with CONFIG_VMAP_STACK, or memory corruption without it. A double report only ever wraps two normal reports; it is never legitimately nested. Refuse to re-enter the DOUBLE_REPORT_ID case from a recursive call so the recursion depth is bounded to two, while all valid packets keep being parsed exactly as before. The Linux kernel CVE team has assigned CVE-2026-80783 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.37 with commit a462230e16acc8664145216da3c928d03556691a and fixed in 5.15.220 with commit 26c45abed62536aabf4033fb6d64cf72e93374e9 Issue introduced in 2.6.37 with commit a462230e16acc8664145216da3c928d03556691a and fixed in 6.1.187 with commit 8a10a624996f16628234306b46f0cf36707d78bd Issue introduced in 2.6.37 with commit a462230e16acc8664145216da3c928d03556691a and fixed in 6.6.156 with commit d16df755b4493b6d37803c628b2c621d096796a8 Issue introduced in 2.6.37 with commit a462230e16acc8664145216da3c928d03556691a and fixed in 6.12.108 with commit bec338b07beb883726b32192c8f01c601bc76fda Issue introduced in 2.6.37 with commit a462230e16acc8664145216da3c928d03556691a and fixed in 6.18.49 with commit 70589b0c005db003f6d8ae4db3c4d54fed7b83e4 Issue introduced in 2.6.37 with commit a462230e16acc8664145216da3c928d03556691a and fixed in 7.1.11 with commit a33a596d3ad8dfe6c96a368097a028abeee16c17 Issue introduced in 2.6.37 with commit a462230e16acc8664145216da3c928d03556691a and fixed in 7.2.1 with commit d095de37f78c5f32a4252ef0f99b84ba76550b86 Issue introduced in 2.6.37 with commit a462230e16acc8664145216da3c928d03556691a and fixed in 7.3-rc1 with commit db8d634128d2ba88d79c0b601e983ebe14bb0519 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-80783 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/26c45abed62536aabf4033fb6d64cf72e93374e9 https://git.kernel.org/stable/c/8a10a624996f16628234306b46f0cf36707d78bd https://git.kernel.org/stable/c/d16df755b4493b6d37803c628b2c621d096796a8 https://git.kernel.org/stable/c/bec338b07beb883726b32192c8f01c601bc76fda https://git.kernel.org/stable/c/70589b0c005db003f6d8ae4db3c4d54fed7b83e4 https://git.kernel.org/stable/c/a33a596d3ad8dfe6c96a368097a028abeee16c17 https://git.kernel.org/stable/c/d095de37f78c5f32a4252ef0f99b84ba76550b86 https://git.kernel.org/stable/c/db8d634128d2ba88d79c0b601e983ebe14bb0519