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 65E9014372D for ; Tue, 21 May 2024 15:06:34 +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=1716303994; cv=none; b=LLbF1gRNzMx7/+hZHYqugalEUUSgUAxnCoe02rdHgJJT2MNrm7E4CFgJ8aSC5z2miwpQeaV0mFiRKrSB6opRw0B5Pl2J6jnjUX6tUSVbBasghIvf9BPlw0+/DZnO2p/9JJlSwR0rIhd170a7uxnpusDnHt1V5V1DY72vKijupUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303994; c=relaxed/simple; bh=UyFMkXsya+231V7W/RXkPvQAWPl6Xc7Rl4GzYgiZtLo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ncf37PzhxAP/FMYgpaqKK/scZc9pBDSeNQDOlk8lUF/Ql6XA8JiPEUck3tGywClbIURfXqLRLPfTBOw2CqOxJ22rPX72M6Hv0tM4cx+umf4rh21X3yjJoi1gzhLKnqpSYGcsZCoGvLIc83uET4hQBHC7Po7+5S6jvXObik5tba4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y0+mhR8C; 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="y0+mhR8C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0EFCC2BD11; Tue, 21 May 2024 15:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303994; bh=UyFMkXsya+231V7W/RXkPvQAWPl6Xc7Rl4GzYgiZtLo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y0+mhR8Ctbsuh5IlCDq4QJ5YTOSF69LPqLKqkuL0np7yiCQAo3LeQnU4/GsdWyy6P P05b6fDl/PpmC2d6MV+QWC1yDwgCtt4Td9fneOp6WwZMmFpuAMz13agAxM5JzmRrxs FewQglKh2VBWw2XdLBfQU33xyMzF1XXpU8yRhQIA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47404: HID: betop: fix slab-out-of-bounds Write in betop_probe Date: Tue, 21 May 2024 17:04:21 +0200 Message-ID: <2024052150-CVE-2021-47404-f851@gregkh> X-Mailer: git-send-email 2.45.1 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=2532; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UyFMkXsya+231V7W/RXkPvQAWPl6Xc7Rl4GzYgiZtLo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+26/9VHtpu/foffuS6W6em1zsAi9vuhDH2FF1r2JWf OIDuXibjhgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIvUaG+SF75SWz9sw2T+67 +2bpXr6de7b/jWCY7vtbqKNRQX/qXwXtWR3yz3reT8oGAA== 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: fix slab-out-of-bounds Write in betop_probe Syzbot reported slab-out-of-bounds Write bug in hid-betopff driver. The problem is the driver assumes the device must have an input report but some malicious devices violate this assumption. So this patch checks hid_device's input is non empty before it's been used. The Linux kernel CVE team has assigned CVE-2021-47404 to this issue. Affected and fixed versions =========================== Fixed in 4.4.286 with commit a4faa7153b87 Fixed in 4.9.285 with commit 6fc4476dda58 Fixed in 4.14.249 with commit 1c83c38dec83 Fixed in 4.19.209 with commit bb8b72374db6 Fixed in 5.4.151 with commit fe9bb925e709 Fixed in 5.10.71 with commit dedfc35a2de2 Fixed in 5.14.10 with commit 708107b80aa6 Fixed in 5.15 with commit 1e4ce418b1cb 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-2021-47404 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/a4faa7153b87fbcfe4be15f4278676f79ca6e019 https://git.kernel.org/stable/c/6fc4476dda58f6c00097c7ddec3b772513f57525 https://git.kernel.org/stable/c/1c83c38dec83d57bc18d0c01d82c413d3b34ccb9 https://git.kernel.org/stable/c/bb8b72374db69afa25a5b65cf1c092860c6fe914 https://git.kernel.org/stable/c/fe9bb925e7096509711660d39c0493a1546e9550 https://git.kernel.org/stable/c/dedfc35a2de2bae9fa3da8210a05bfd515f83fee https://git.kernel.org/stable/c/708107b80aa616976d1c5fa60ac0c1390749db5e https://git.kernel.org/stable/c/1e4ce418b1cb1a810256b5fb3fd33d22d1325993