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 B2D95142648 for ; Tue, 21 May 2024 14:38:49 +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=1716302329; cv=none; b=nnOaRSaBWMAsGc+PfTN+QGe8KBS8zIGnxpABjSjs6deoT42f8amusJpBnKpsXni/+T+3KFMU9MCM6+dKxZZC4jgguQ8PlSeiHD6Tfr1WnY5CG65IZXYVAllsFZJ+ymKFPTpgddSPadmIViDLvtOGpG2QXwOtM2+BYUyCIip1RUU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302329; c=relaxed/simple; bh=Xon7eZkCcUbDJofqibkX6r1IVAvuaULmLK2iqqZ4oeQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a/ajyEXXcN/iA0FlHT3Icmj3H3t0R9MbvZ4Ad3bbaowI5Dt7bjcAE79hTcUaIW7RYrf4Qau6ecXeVdNbWPum1i4G+chLbZx/3DnzWQULrUVHXfaUtj4eAl6QXRQ4iCcwq2EqLfn8xDSQBNZ5KBRdqM8Zx6VapZtyKmDV1u7SroQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dOjpjMz+; 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="dOjpjMz+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A543C2BD11; Tue, 21 May 2024 14:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302329; bh=Xon7eZkCcUbDJofqibkX6r1IVAvuaULmLK2iqqZ4oeQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dOjpjMz+PdRdYL19Z3G+n0Fzv+KXp6eoi1KsE2o7wb09yoskVlT1UVc+ChNSzfXMP qSf6+uioF2BSRPjXUTy1EWhatlVNac2V+D7+rgJhMFBXF+B672UVbTLQL8fERheoi4 igyHOCaqDamvlZcMcs5XvNkLXgiaxHQ20XE2QcPs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47301: igb: Fix use-after-free error during reset Date: Tue, 21 May 2024 16:35:35 +0200 Message-ID: <2024052126-CVE-2021-47301-13b4@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=2734; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Xon7eZkCcUbDJofqibkX6r1IVAvuaULmLK2iqqZ4oeQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G/W0lh5xLZEJ8lINTnO2mnRPe/stp/7JFsfN7War3 t3p4P2xI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTAG7ySoYF7bN2rb6gdTJvPbOD icehdI5/zGf/MMwztwpSiVR0cI2+t3LPh2uRLQq3HU8DAA== 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: igb: Fix use-after-free error during reset Cleans the next descriptor to watch (next_to_watch) when cleaning the TX ring. Failure to do so can cause invalid memory accesses. If igb_poll() runs while the controller is reset this can lead to the driver try to free a skb that was already freed. (The crash is harder to reproduce with the igb driver, but the same potential problem exists as the code is identical to igc) The Linux kernel CVE team has assigned CVE-2021-47301 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 7cc6fd4c60f2 and fixed in 4.14.241 with commit d7367f781e5a Issue introduced in 4.12 with commit 7cc6fd4c60f2 and fixed in 4.19.199 with commit d3ccb18ed5ac Issue introduced in 4.12 with commit 7cc6fd4c60f2 and fixed in 5.4.136 with commit 88e0720133d4 Issue introduced in 4.12 with commit 7cc6fd4c60f2 and fixed in 5.10.54 with commit f153664d8e70 Issue introduced in 4.12 with commit 7cc6fd4c60f2 and fixed in 5.13.6 with commit 8e24c12f2ff6 Issue introduced in 4.12 with commit 7cc6fd4c60f2 and fixed in 5.14 with commit 7b292608db23 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-47301 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/intel/igb/igb_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/d7367f781e5a9ca5df9082b15b272b55e76931f8 https://git.kernel.org/stable/c/d3ccb18ed5ac3283c7b31ecc685b499e580d5492 https://git.kernel.org/stable/c/88e0720133d42d34851c8721cf5f289a50a8710f https://git.kernel.org/stable/c/f153664d8e70c11d0371341613651e1130e20240 https://git.kernel.org/stable/c/8e24c12f2ff6d32fd9f057382f08e748ec97194c https://git.kernel.org/stable/c/7b292608db23ccbbfbfa50cdb155d01725d7a52e