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 A01BE12D1EB for ; Fri, 24 May 2024 15:11:55 +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=1716563515; cv=none; b=dk2usLCj15rXae0jv/1cdzQG+AYmu15z7hPvb4OpPm4GC7qLFBr79UYCp0d3JvDpS+q1+WyDgGXTqbw8z9z/gr9euNGdhFcbE1u8ubjmVbH/3f4dlfpqoFfepfY2Y9m/5mgmOM4yek/lnpmhA/fZBvrRaxj7OOfbSIGHIdtrQ60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563515; c=relaxed/simple; bh=WYFaCnShNF5QexbB9LtlYbbSiV9R4Wr17AWkSVkicIg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RAXvQgL1z87dsHYTDLPaLawIWsSHm/YY4V7juMDLNaDPAZwFf/XMyzSABg567+Ln5WePae2+4EC3uPVHRsCeZA1fk+kU6nxrEUNI32eKK2+bnkjXziD6TmfZW89nYuuuU2HeqeOolS1PHtIgW8amlQIMMnHXm3bWNyGdh8O/12I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wJyVwWdf; 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="wJyVwWdf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25433C4AF10; Fri, 24 May 2024 15:11:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563515; bh=WYFaCnShNF5QexbB9LtlYbbSiV9R4Wr17AWkSVkicIg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wJyVwWdfiJAOrmRPnrtwaKY/Xnobm5E3DUo+0ac1xxBAGXvv4/RLt01aMBf+ODlmP efWlxjbdTSDZ4typzQek02VLwZ5P0q16UPiqTSvGR7+HFgUxxw2fa53tmVgCWcej1e QqWl1ZbGXONxzSGtnMEPa/6D7/bR5Zl7HdojM2Ro= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47558: net: stmmac: Disable Tx queues when reconfiguring the interface Date: Fri, 24 May 2024 17:10:18 +0200 Message-ID: <2024052444-CVE-2021-47558-d713@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=2548; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WYFaCnShNF5QexbB9LtlYbbSiV9R4Wr17AWkSVkicIg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBa3dUhCdOmbQ08dcBpkWaamVb7182MOyROjSJ+VD1h q727qbOjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIpKMM83PWP51qtNVtThbX WZkVNq3eJw8yMDDMlXzztihuh71F9yTbeuer7GUCHJETAA== 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: net: stmmac: Disable Tx queues when reconfiguring the interface The Tx queues were not disabled in situations where the driver needed to stop the interface to apply a new configuration. This could result in a kernel panic when doing any of the 3 following actions: * reconfiguring the number of queues (ethtool -L) * reconfiguring the size of the ring buffers (ethtool -G) * installing/removing an XDP program (ip l set dev ethX xdp) Prevent the panic by making sure netif_tx_disable is called when stopping an interface. Without this patch, the following kernel panic can be observed when doing any of the actions above: Unable to handle kernel paging request at virtual address ffff80001238d040 [....] Call trace: dwmac4_set_addr+0x8/0x10 dev_hard_start_xmit+0xe4/0x1ac sch_direct_xmit+0xe8/0x39c __dev_queue_xmit+0x3ec/0xaf0 dev_queue_xmit+0x14/0x20 [...] [ end trace 0000000000000002 ]--- The Linux kernel CVE team has assigned CVE-2021-47558 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 0366f7e06a6b and fixed in 5.15.6 with commit a92f0eebb8dc Issue introduced in 5.10 with commit 0366f7e06a6b and fixed in 5.16 with commit b270bfe69736 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-47558 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/stmicro/stmmac/stmmac_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/a92f0eebb8dc008b9e8c51c6f7b8c93b27a29a43 https://git.kernel.org/stable/c/b270bfe697367776eca2e6759a71d700fb8d82a2