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 894D34A2D for ; Tue, 27 Feb 2024 18:41:23 +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=1709059283; cv=none; b=iRgThF1Ehev5Jn0NzRnkf0EhVUWqdfqVCEiyYvPRLyMpA0IKEha+tjssfaC58QJ8uDKSd+t3R2baY8GLQ4iXOnXw5LOsokOnuj3i73Q88f/4HU6PhUEU9CTlp9UEteGkakUPTXE1NX7xhfTcX0rBGb9TiaAkWiOGKz/hHuBDNao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059283; c=relaxed/simple; bh=5mysj6f0SH/Xaify08bmc2QsPiJXwHexs1pRss4M5Oc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uvgpQd9ZuGTss5vkP5wlKR6MFyVktyE+K6RXfzTaSESEV7jZL3xXbcX4bWhmuPZ0AlXFFCg6YnpCUi5Obzq/a1R7YIVuQVtmM57dmG9OMtSj53H23yxa3r6ufHwf2p1v7DMS1oGlZrMfNbwXuCUpZrS3OH55AyFX2OCmXs/VY9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jTux6OHN; 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="jTux6OHN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16203C433C7; Tue, 27 Feb 2024 18:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059283; bh=5mysj6f0SH/Xaify08bmc2QsPiJXwHexs1pRss4M5Oc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jTux6OHN/HWM2aD3WLuVYP1yHdYAB/5j3yQ3kTdKhYr8D40bfRZP3pENS2gaygdvx LYeTIpHm+f40Ypv27nIYMaB/FFrX1XdmQGKPCcRX1AsBm9b5mhqB+PpaCIljPXjZ+Q CM8Fae7l2/W+h8tmRv+A9vha5SSDc7nkVbYVFZrg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46949: sfc: farch: fix TX queue lookup in TX flush done handling Date: Tue, 27 Feb 2024 19:40:51 +0100 Message-ID: <20240227184057.2368370-14-gregkh@linuxfoundation.org> 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: , Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: sfc: farch: fix TX queue lookup in TX flush done handling We're starting from a TXQ instance number ('qid'), not a TXQ type, so efx_get_tx_queue() is inappropriate (and could return NULL, leading to panics). The Linux kernel CVE team has assigned CVE-2021-46949 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 12804793b17c and fixed in 5.10.36 with commit fb791572d674 Issue introduced in 5.10 with commit 12804793b17c and fixed in 5.11.20 with commit a1570985ec04 Issue introduced in 5.10 with commit 12804793b17c and fixed in 5.12.3 with commit 98d911807489 Issue introduced in 5.10 with commit 12804793b17c and fixed in 5.13 with commit 5b1faa92289b Please see https://www.kernel.org or 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-46949 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/sfc/farch.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/fb791572d6747ef385f628450f8d57cd132e6e5a https://git.kernel.org/stable/c/a1570985ec04116cc665b760faf666a104154170 https://git.kernel.org/stable/c/98d91180748986bfb6dfb3e72765f3225719a647 https://git.kernel.org/stable/c/5b1faa92289b53cad654123ed2bc8e10f6ddd4ac