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 271B73E024E for ; Wed, 22 Apr 2026 13:58:01 +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=1776866281; cv=none; b=VNGuiqtpsas3kZsqQCSbXOXFwPq9JY9WXDsyAv2moJHUknL+sAxBwTffkwrh2z7XkH1V2q5voxh0YDKxJ1VqMPErVD1XTszhn7T2CynLJMfww7ygJJG8PYn7l4G7rvj+RorWT3gcf/SOgCqEWK08Qs18fbTpI7ByP+HsudcOCXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866281; c=relaxed/simple; bh=fXGCOZ9S2l2t3pUZ8gNvOH1250Gz89AZrgfxxwP9aPs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uoi/7LHUP+1NNHuzoPW+85OPw+BSWiBxkKnqpX/UjlemJuIhhCFTZTluTxZryyoDi+xkIYaRs32k8VU0TjtL6EYCEaBeptPdee20TxO1Fjr3+sr8v6XQwUmWXfgfAl/b+YlfMwxgxN7jRbgSrI5f7Zsq2SXFBLhvd+O9tNK1jhk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GYf82lTk; 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="GYf82lTk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF8D9C2BCB2; Wed, 22 Apr 2026 13:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866281; bh=fXGCOZ9S2l2t3pUZ8gNvOH1250Gz89AZrgfxxwP9aPs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=GYf82lTkEue+mpz9xeqQw8Pgb5xfZ8CrGjzz/Fpj0fHkiZ7lfVWmy1EArX+uTB1qq nKLsxq5jtRqoZQ0fsIf8EXaWBs3DPNS9ID5ZCENEUB78U8F8kHzWExsUcSu/0xghkv 5onu4U5w+LJBGuaPapCNAQ5Q1epp/xdwFI1bqQYo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31524: HID: asus: avoid memory leak in asus_report_fixup() Date: Wed, 22 Apr 2026 15:55:10 +0200 Message-ID: <2026042213-CVE-2026-31524-3f28@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=2969; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A+Jur6uDfpah4DrS6yeDZSjkvAKwMLV/+qaUqmkewFU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLrOW+B0TnKvffUNEbZ2JmqeAf6hh5OoLTFP0tq1pj 3hSp3K1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbClsgwP4dx3f0I7zs+P8Om n8jdWVxmGvLzBcNcOZ9cifklf6sDrGT5XpVnzgicasIPAA== 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: asus: avoid memory leak in asus_report_fixup() The asus_report_fixup() function was returning a newly allocated kmemdup()-allocated buffer, but never freeing it. Switch to devm_kzalloc() to ensure the memory is managed and freed automatically when the device is removed. The caller of report_fixup() does not take ownership of the returned pointer, but it is permitted to return a pointer whose lifetime is at least that of the input buffer. Also fix a harmless out-of-bounds read by copying only the original descriptor size. The Linux kernel CVE team has assigned CVE-2026-31524 to this issue. Affected and fixed versions =========================== Fixed in 5.10.253 with commit 726765b43deb2b4723869d673cc5fc6f7a3b2059 Fixed in 5.15.203 with commit ede95cfcab8064d9a08813fbd7ed42cea8843dcf Fixed in 6.1.168 with commit 2e4fe6b15c2f390c023b20d728b1a3fe7ea4f973 Fixed in 6.6.131 with commit f20f17cffbe34fb330267e0f8084f5565f807444 Fixed in 6.12.80 with commit 7a6d6e4d8af044f94fa97e97af5ff2771e1fbebd Fixed in 6.18.21 with commit a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c Fixed in 6.19.11 with commit 84724ac4821a160d47b84289adf139023027bdbb Fixed in 7.0 with commit 2bad24c17742fc88973d6aea526ce1353f5334a3 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-31524 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-asus.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/726765b43deb2b4723869d673cc5fc6f7a3b2059 https://git.kernel.org/stable/c/ede95cfcab8064d9a08813fbd7ed42cea8843dcf https://git.kernel.org/stable/c/2e4fe6b15c2f390c023b20d728b1a3fe7ea4f973 https://git.kernel.org/stable/c/f20f17cffbe34fb330267e0f8084f5565f807444 https://git.kernel.org/stable/c/7a6d6e4d8af044f94fa97e97af5ff2771e1fbebd https://git.kernel.org/stable/c/a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c https://git.kernel.org/stable/c/84724ac4821a160d47b84289adf139023027bdbb https://git.kernel.org/stable/c/2bad24c17742fc88973d6aea526ce1353f5334a3