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 A81BE3B27EB for ; Wed, 22 Apr 2026 13:57:55 +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=1776866275; cv=none; b=Sc4+O6L1cAfHTapI/B8VCSnnTSGP0+7pU4tPQwMUn5AUPLF2AdxEWspmxYC4gy3InLicSZcyF8rXWEN0KOJWAnUu81tUHjDXS0EZRvJistk5GDAS7tA3wtXxycxImusR3IjZEYnPi18bfoohfutsY+J06N9i7WIdZ2vLu2BebnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866275; c=relaxed/simple; bh=afGGNniVPCEFEOBZonrCuII2cdtsSFH1Kcto4gd6gG8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lwe1DQ4cZwRqG/LTw3TCphYvJBUQ0pP9B0Oc2Bgr8JhuUNQqgrD+G7aG2MJMNJBRwuShl6NF+iEn+EVlTyTiK+qtz/stLmSqhaqFkH/oLM0xnp1Y1tfPNQiDXMPKkFwoRr8V9lyWBn3Lftp2+U4nVK42B9ie5AVNd3z7a5ZBFd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=umR77Oiz; 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="umR77Oiz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D0F6C19425; Wed, 22 Apr 2026 13:57:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866275; bh=afGGNniVPCEFEOBZonrCuII2cdtsSFH1Kcto4gd6gG8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=umR77Oizx+xEDYZzJqBLgaZ+94a+xusM9ZLh0EOGPr5IitR7PTp6taCxX5N2gt7tN zt5bcYvB6fFjq5cdnAVDJiTt/ZyiE+ty30EQ+SKXRjriufor6ny9ZRph8+QhgQjRDD UZry5D2G6M23dB/BTUHBrgWrPN9Xghd/aoiPlfLI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31522: HID: magicmouse: avoid memory leak in magicmouse_report_fixup() Date: Wed, 22 Apr 2026 15:55:08 +0200 Message-ID: <2026042212-CVE-2026-31522-b576@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=2648; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fHOsp6KXbNOSwyKKbOIcxH25/gh6zA4KooMufEHpWxc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLrPMiDpydtJ66VKHvtM/rTgaZ/ztYfl56bbdzEUpV xTO5ars7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJSOYwzE8ujxCamHpAc8JF N2kOqZjea+0X1jIsmLXIMdPhUPlfJflQfUWr8pbSrVMmAAA= 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: avoid memory leak in magicmouse_report_fixup() The magicmouse_report_fixup() function was returning a newly kmemdup()-allocated buffer, but never freeing it. The caller of report_fixup() does not take ownership of the returned pointer, but it *is* permitted to return a sub-portion of the input rdesc, whose lifetime is managed by the caller. The Linux kernel CVE team has assigned CVE-2026-31522 to this issue. Affected and fixed versions =========================== Fixed in 5.15.203 with commit 579c4c9857acdc8380fa99803f355f878bd766cb Fixed in 6.1.168 with commit d84c21aabaab517b9aaf9bc1d785922cb9db2f31 Fixed in 6.6.131 with commit 7edfe4346b052b708645d0acc0f186425766b785 Fixed in 6.12.80 with commit 79e5dcc95d9abed6f8203cfd529f4ec71f0e505d Fixed in 6.18.21 with commit 136f605e246b4bfe7ac2259471d1ff814aed0084 Fixed in 6.19.11 with commit fa95b0146358b49f9858139b67314591fd5871b0 Fixed in 7.0 with commit 91e8c6e601bdc1ccdf886479b6513c01c7e51c2c 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-31522 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/579c4c9857acdc8380fa99803f355f878bd766cb https://git.kernel.org/stable/c/d84c21aabaab517b9aaf9bc1d785922cb9db2f31 https://git.kernel.org/stable/c/7edfe4346b052b708645d0acc0f186425766b785 https://git.kernel.org/stable/c/79e5dcc95d9abed6f8203cfd529f4ec71f0e505d https://git.kernel.org/stable/c/136f605e246b4bfe7ac2259471d1ff814aed0084 https://git.kernel.org/stable/c/fa95b0146358b49f9858139b67314591fd5871b0 https://git.kernel.org/stable/c/91e8c6e601bdc1ccdf886479b6513c01c7e51c2c