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 BC77C16F0E8 for ; Mon, 25 Mar 2024 09:08:42 +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=1711357722; cv=none; b=bj1r3xrr5hO3dQHBjCDX2aB6BBaH74x8rwx27+yWGkORzY9DVwdRKIDY7ZAURWBTrFAXTQj/x8C3La8JMLGxTy2ipImOCEzKlemOfwdGxlWayKnjn511qopP7JvZTC2Ku0YSRoyeaVmhA9uclZ8yNzulYUS+lNOcMixJgGMw4lE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711357722; c=relaxed/simple; bh=qp9s3AOisLRwmLGd9gGWsTRl/E49+1zSmRAz8NuOahQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nt0Ld13JodtkuJOuHfTES/1RhuE75lhBI5OE2xtc03wokeX2yDKvf6TddQp3UzJsw+/GsDNaQFhyuVQXJDbMpFiANoFCIQs64yuAwa4qdqOay0mIN9Pj9B2vUE56xCrFRhWbsfvsBM58Z5KxFEixPC8ySUbcp/y5XPAkSjT5h94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c1fma1aw; 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="c1fma1aw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 036BBC433C7; Mon, 25 Mar 2024 09:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711357722; bh=qp9s3AOisLRwmLGd9gGWsTRl/E49+1zSmRAz8NuOahQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=c1fma1awEok9oSLuTkhb5xs2+rQiis/CEVlRzZGnB3Szcm/RR9fsHXAR+NkapMMS6 rOgZ+BR7IJpHq4P0FSBFNd1kF99C+4lPvlP5+6SD3P10+b6cpTaeyxzEiZVIvZPc/C Jid3/Y5cEPo73TmAcFhcnXe2wJQFtAkEZh9Qvfdk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47138: cxgb4: avoid accessing registers when clearing filters Date: Mon, 25 Mar 2024 10:07:55 +0100 Message-ID: <2024032557-CVE-2021-47138-9241@gregkh> X-Mailer: git-send-email 2.44.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=2311; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qp9s3AOisLRwmLGd9gGWsTRl/E49+1zSmRAz8NuOahQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMdm/DXQ96BeY+1vh2QILhaAH7wrVzkgM/yqf91pEIP FYgVXigI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyYjXDgoVsEZ/X1sj/P3nE I+fb9DDWgwF6qxgWLNbaMt9Y909X9mShboOqzUtW9hs8AQA= 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: cxgb4: avoid accessing registers when clearing filters Hardware register having the server TID base can contain invalid values when adapter is in bad state (for example, due to AER fatal error). Reading these invalid values in the register can lead to out-of-bound memory access. So, fix by using the saved server TID base when clearing filters. The Linux kernel CVE team has assigned CVE-2021-47138 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit b1a79360ee86 and fixed in 5.4.124 with commit 0bf49b3c8d8b Issue introduced in 5.2 with commit b1a79360ee86 and fixed in 5.10.42 with commit 02f03883fdb1 Issue introduced in 5.2 with commit b1a79360ee86 and fixed in 5.12.9 with commit 285207a558ab Issue introduced in 5.2 with commit b1a79360ee86 and fixed in 5.13 with commit 88c380df84fb 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-47138 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/net/ethernet/chelsio/cxgb4/cxgb4_filter.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/0bf49b3c8d8b3a43ce09f1b2db70e5484d31fcdf https://git.kernel.org/stable/c/02f03883fdb10ad7e66717c70ea163a8d27ae6e7 https://git.kernel.org/stable/c/285207a558ab456aa7d8aa877ecc7e91fcc51710 https://git.kernel.org/stable/c/88c380df84fbd03f9b137c2b9d0a44b9f2f553b0