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 D34EF3E8C5B for ; Wed, 22 Apr 2026 13:57:47 +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=1776866267; cv=none; b=k7kUctYjpyt9/lKwdExxK9xh+vDaXJtS9KBhGO7jNkKvA2CVSjkRztsG398DfBhGt8k9K4SMSS11mApS/K5AioG7o0gAbFUZfEJYDMeT/dgK26BcVLhLpouj5DagCmhm7AtLmiwDeNaWmtV9SCajxR5hmz0Whs/KwlmuXLxNZaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866267; c=relaxed/simple; bh=ZCymrdO9cm8m8nRCjOQ/+jojscPiXerwKewEoj2jxsQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z7gVFKW/RTVGx4Fn5pT0xcd4Y6z19JrAjPRqewL3e6xOR7BgFp384xox4rdftY4bGA5g8tZecnARagbvd8/a2ImtQBvz4aM5CsNONS88iiZs5ES7UKcZ5MKrGhzZMP5L857A/SuXR9szWjfD4jTfrzNCY/LKjyXJimFlWnzM9XI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ja3/aq23; 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="ja3/aq23" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68BBCC19425; Wed, 22 Apr 2026 13:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866267; bh=ZCymrdO9cm8m8nRCjOQ/+jojscPiXerwKewEoj2jxsQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ja3/aq23Oo4B9q+ul/WiVbh1Dluq3ijkuY7bn23M9u5+hH0sEavePSureujYsC/1U h3g2iAKZm1Q4snVWcdSRlH0zUC1gATp8Wcl6lWieOFhc1HvVJLbuntA/YSHAJ+0TRm zg4NgnXR1Q6RKkV2vvEabULk53CuvX/f+Y2mheew= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31520: HID: apple: avoid memory leak in apple_report_fixup() Date: Wed, 22 Apr 2026 15:55:06 +0200 Message-ID: <2026042211-CVE-2026-31520-a81f@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=2480; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t275jNNUc27fXDeadV6ke3UhC1G5HUZmPNr0+lmfxqo=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLrNI7+t8eO174pXv83/PrtgqGs4mXXKfZQXrmYw+j aOr7G8UdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEmEIZ5ikdWGI/f6e2W/ki ro3bjW6u9poRdphhfrZzq1/H9GVzfhXrrbp2ff7bBWcXsQMA 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: apple: avoid memory leak in apple_report_fixup() The apple_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-31520 to this issue. Affected and fixed versions =========================== Fixed in 6.1.168 with commit e2f090aeb7b9930a964e151910f4d45b04c8a7e5 Fixed in 6.6.131 with commit 2635d0c715f3fb177e0f80ecd5fa48feb6bf3884 Fixed in 6.12.80 with commit 31860c3f7ac66ab897a8c90dc4e74fa17ca0b624 Fixed in 6.18.21 with commit be1a341c161430282acdfe2ac99b413271575cf1 Fixed in 6.19.11 with commit e652ebd29928181c3e6820e303da25873e9917d4 Fixed in 7.0 with commit 239c15116d80f67d32f00acc34575f1a6b699613 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-31520 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-apple.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/e2f090aeb7b9930a964e151910f4d45b04c8a7e5 https://git.kernel.org/stable/c/2635d0c715f3fb177e0f80ecd5fa48feb6bf3884 https://git.kernel.org/stable/c/31860c3f7ac66ab897a8c90dc4e74fa17ca0b624 https://git.kernel.org/stable/c/be1a341c161430282acdfe2ac99b413271575cf1 https://git.kernel.org/stable/c/e652ebd29928181c3e6820e303da25873e9917d4 https://git.kernel.org/stable/c/239c15116d80f67d32f00acc34575f1a6b699613