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 39C5E14262B for ; Tue, 21 May 2024 14:38:15 +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=1716302295; cv=none; b=ixkm2cfMGrIdmsBBLUPfyrf4FyxFtkdjh7j6+38zDfMV7wmkp8yrascxOykJh5goaXRjxjlaOXXhw0JmkcdqrDHguh2uruc7KpyObgMKVeepAjgPnLNZP76KhXx5YS4q3OV85RfzujsBQKyQcYH17+mphlJjUqAz2aOujq2Jpp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302295; c=relaxed/simple; bh=lZoqguMVoOZvLEnuiETE05Jp9x7oZ2YC63Xf9Snmrok=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KL1pT8u1keSNRd6na3VEkAxzoRRG+sFDSPgxE6aEXty/5pdfNKyvKHpSXei2VxefujWOlK6GrMysI0S6Qvi1RU1jQbjeuMPn9qH8tdVWppfHixTjDxDaY5nim7jDQfAjiYrDLBeavzRi6YKgqCAtHBW1bhP9kq6oXubnJcO+c3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1u+JTz+e; 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="1u+JTz+e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7B0BC2BD11; Tue, 21 May 2024 14:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302295; bh=lZoqguMVoOZvLEnuiETE05Jp9x7oZ2YC63Xf9Snmrok=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1u+JTz+e85KdowIP5yID3yRI4UjS8lx3rk2lXX/T9mRWLdNddM346GjxkZJHLqCs6 qAnDrDxU2TGquQ2gBJFs41HVt0198zoeSCBaMpDtsT1uRXNw8abBJhgUcqR+FxLQFA 24vmDgHZ88cl2swj5MWayr9a04rouCN4Zzz0tOtY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47286: bus: mhi: core: Validate channel ID when processing command completions Date: Tue, 21 May 2024 16:35:20 +0200 Message-ID: <2024052119-CVE-2021-47286-c242@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=2175; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lZoqguMVoOZvLEnuiETE05Jp9x7oZ2YC63Xf9Snmrok=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G9XPn/zNd3DRxCpn1mutbW6aXyd/S+zacWHyrMzgP 9PDI1andsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEOP8yzA8usD/9+5xR365F TwO7p+mo2du2rGSYH9uQ5+ZvU7n9kLns+n+LjIKubdh7EQA= 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: bus: mhi: core: Validate channel ID when processing command completions MHI reads the channel ID from the event ring element sent by the device which can be any value between 0 and 255. In order to prevent any out of bound accesses, add a check against the maximum number of channels supported by the controller and those channels not configured yet so as to skip processing of that event ring element. The Linux kernel CVE team has assigned CVE-2021-47286 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 1d3173a3bae7 and fixed in 5.10.54 with commit 3efec3b4b16f Issue introduced in 5.7 with commit 1d3173a3bae7 and fixed in 5.13.6 with commit aed4f5b51aba Issue introduced in 5.7 with commit 1d3173a3bae7 and fixed in 5.14 with commit 546362a9ef2e 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-47286 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/bus/mhi/core/main.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/3efec3b4b16fc7af25676a94230a8ab2a3bb867c https://git.kernel.org/stable/c/aed4f5b51aba41e2afd7cfda20a0571a6a67dfe9 https://git.kernel.org/stable/c/546362a9ef2ef40b57c6605f14e88ced507f8dd0