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 2E1902147F4 for ; Thu, 27 Mar 2025 16:46:27 +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=1743093987; cv=none; b=fZWvdBcys7HtrPKlFLPGVzfXCEy2ODQTS3s1cKLC+DViVylsNMFIAliINOEfFfnknLhNaoz78NiYQm9sqp1/bniAlfoIpBzipUXG+itgIOJtXnLHQ5znRze5LFvinNyBPDnnxsuvET0DSEzFzeWLBSi5WB9XRQ5UrOPqFE9NNdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093987; c=relaxed/simple; bh=ljUqs74KY3r2g69dJ4k3QNgHF/T34IteVp1G2HuJPts=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Le7TZ8pCWvdZhUKIZB6S547AzhwjPnbtUaquaWrpgcMMgrEvCr+TS2g77MXG3qnu2VpxWVXCGZoojwUqHYdH5MdltclmqCHyEUO5WuK2Bo2cYgeoJj5mmySC3OlIiozIqFZVN3yZxtuwtsBZ47IflyQHra2MMWHQmzBZEDpjJfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JpPNWyH+; 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="JpPNWyH+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91BCCC4CEDD; Thu, 27 Mar 2025 16:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093987; bh=ljUqs74KY3r2g69dJ4k3QNgHF/T34IteVp1G2HuJPts=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JpPNWyH+0bxjKzQFKNHeb2MhPKcwTI9GLWsnWMHx++AJhg5iWuxCqTirokz+tJ4e7 v0uQzGiuv+9VGfdzp4vP+4Kd09s9zbgDQf5RRTnAAbzZKXCrmamQD8+bI6B4xuHQCe 2pZL/nlr5BiZJTGYis9+epfUlMY019OKHPAJ0Bb4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53015: HID: betop: check shape of output reports Date: Thu, 27 Mar 2025 17:44:02 +0100 Message-ID: <2025032716-CVE-2023-53015-f139@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3213; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ljUqs74KY3r2g69dJ4k3QNgHF/T34IteVp1G2HuJPts=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG1TuHgyZUj737wIG1lVTXD1duAvjRYKu5atFy+xtS 0vl0frfEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN57cswv6CKTWmvXeuclvmr 5LzXtT1j3ba5lmHBnuBCvfnLFOYqfjjWcrT3Wsu6qTXXAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: HID: betop: check shape of output reports betopff_init() only checks the total sum of the report counts for each report field to be at least 4, but hid_betopff_play() expects 4 report fields. A device advertising an output report with one field and 4 report counts would pass the check but crash the kernel with a NULL pointer dereference in hid_betopff_play(). The Linux kernel CVE team has assigned CVE-2023-53015 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 and fixed in 4.14.305 with commit dbab4dba400d6ea9a9697fbbd287adbf7db1dac4 Issue introduced in 4.0 with commit 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 and fixed in 4.19.272 with commit 7317326f685824c7c29bd80841fd18041af6bb73 Issue introduced in 4.0 with commit 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 and fixed in 5.4.231 with commit d3065cc56221d1a5eda237e94eaf2a627b88ab79 Issue introduced in 4.0 with commit 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 and fixed in 5.10.166 with commit 28fc6095da22dc88433d79578ae1c495ebe8ca43 Issue introduced in 4.0 with commit 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 and fixed in 5.15.91 with commit 1a2a47b85cab50a3c146731bfeaf2d860f5344ee Issue introduced in 4.0 with commit 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 and fixed in 6.1.9 with commit 07bc32e53c7bd5c91472cc485231ef6274db9b76 Issue introduced in 4.0 with commit 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 and fixed in 6.2 with commit 3782c0d6edf658b71354a64d60aa7a296188fc90 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-2023-53015 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-betopff.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/dbab4dba400d6ea9a9697fbbd287adbf7db1dac4 https://git.kernel.org/stable/c/7317326f685824c7c29bd80841fd18041af6bb73 https://git.kernel.org/stable/c/d3065cc56221d1a5eda237e94eaf2a627b88ab79 https://git.kernel.org/stable/c/28fc6095da22dc88433d79578ae1c495ebe8ca43 https://git.kernel.org/stable/c/1a2a47b85cab50a3c146731bfeaf2d860f5344ee https://git.kernel.org/stable/c/07bc32e53c7bd5c91472cc485231ef6274db9b76 https://git.kernel.org/stable/c/3782c0d6edf658b71354a64d60aa7a296188fc90