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 E2F0721C162 for ; Wed, 26 Feb 2025 02:28:04 +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=1740536885; cv=none; b=KbBs4qsk5cIqUKqFzc1iLyWctR4THfz+kXKl45WfmBu7o89qeDOTi7FRFKlq8afNRd1oEo2qLk8lA+MzZfMY7m1OLaxfuzMBHmQ39KdeJ1J6RWb5yv/dG8GESB+EGFXLabkwqgnAG/Gext5OL1uP4dUdsvU7+kxPYVIIgOR995I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536885; c=relaxed/simple; bh=nzMhKeN+G6/jqiiuKdRdbTwzN9znoNTaRlkzL7XziXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j3UgDp13FhMuitDhXk+QYCfcjXxSBWm11norKx3BfTwqekZyaTQd627WTy5kkAjxP8mIlr+35AIT2PYPo0xAvyLfKH/Ic/8U1+i8wsC37axb8/XxJ1YOwPVjKHRDS2zPWTjCh6N3X72ByPhpaIzBanoSlxcDGhmY8TdVzcvVNrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v7qVyR/y; 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="v7qVyR/y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7E68C4CEDD; Wed, 26 Feb 2025 02:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536884; bh=nzMhKeN+G6/jqiiuKdRdbTwzN9znoNTaRlkzL7XziXw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=v7qVyR/yFasxz1RZi1sIc0kwYY9x2PC5o3PL1Loor3kycQMnGZ9J0nsl12I9m/hUg jTlAiwP2H1y79CUPSVRzTi2hbx4FofnuzkLg7/Qvw3zJGXUrC9iM/XV+3lYWO4a11i mqhHKuL8TC2MHFVYnDEpjFFqIaxHBrT9w1v/ma1o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49725: i40e: Fix call trace in setup_tx_descriptors Date: Wed, 26 Feb 2025 03:24:48 +0100 Message-ID: <2025022633-CVE-2022-49725-5494@gregkh> X-Mailer: git-send-email 2.48.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=3523; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nzMhKeN+G6/jqiiuKdRdbTwzN9znoNTaRlkzL7XziXw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7ql7uC97zTHZ/xU8jB7/Xt38uXPjgksufBxGVt1p1P s/Y21Bk0hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATmWDHsGChZZnsanMve5Ou Jdvjn8zmeVYReYxhwXG79Cz9r2oZcduNZ4dNmhT1+N6tawA= 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: i40e: Fix call trace in setup_tx_descriptors After PF reset and ethtool -t there was call trace in dmesg sometimes leading to panic. When there was some time, around 5 seconds, between reset and test there were no errors. Problem was that pf reset calls i40e_vsi_close in prep_for_reset and ethtool -t calls i40e_vsi_close in diag_test. If there was not enough time between those commands the second i40e_vsi_close starts before previous i40e_vsi_close was done which leads to crash. Add check to diag_test if pf is in reset and don't start offline tests if it is true. Add netif_info("testing failed") into unhappy path of i40e_diag_test() The Linux kernel CVE team has assigned CVE-2022-49725 to this issue. Affected and fixed versions =========================== Issue introduced in 4.2 with commit e17bc411aea8fbebc51857037f104ab09f765120 and fixed in 4.14.285 with commit 5ba9956ca57e361fb13ea369bb753eb33177acc7 Issue introduced in 4.2 with commit e17bc411aea8fbebc51857037f104ab09f765120 and fixed in 4.19.249 with commit 15950157e2c24865b696db1c9ccc72743ae0e967 Issue introduced in 4.2 with commit e17bc411aea8fbebc51857037f104ab09f765120 and fixed in 5.4.200 with commit ff6e03fe84bc917bb0c907d02de668c2fe101712 Issue introduced in 4.2 with commit e17bc411aea8fbebc51857037f104ab09f765120 and fixed in 5.10.124 with commit 814092927a215f5ca6c08249ec72a205e0b473cd Issue introduced in 4.2 with commit e17bc411aea8fbebc51857037f104ab09f765120 and fixed in 5.15.49 with commit 0a4e5a3dc5e41212870e6043895ae02455c93f63 Issue introduced in 4.2 with commit e17bc411aea8fbebc51857037f104ab09f765120 and fixed in 5.18.6 with commit 322271351b0e41565171e4cce70ea41854fac115 Issue introduced in 4.2 with commit e17bc411aea8fbebc51857037f104ab09f765120 and fixed in 5.19 with commit fd5855e6b1358e816710afee68a1d2bc685176ca 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-2022-49725 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/i40e/i40e_ethtool.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/5ba9956ca57e361fb13ea369bb753eb33177acc7 https://git.kernel.org/stable/c/15950157e2c24865b696db1c9ccc72743ae0e967 https://git.kernel.org/stable/c/ff6e03fe84bc917bb0c907d02de668c2fe101712 https://git.kernel.org/stable/c/814092927a215f5ca6c08249ec72a205e0b473cd https://git.kernel.org/stable/c/0a4e5a3dc5e41212870e6043895ae02455c93f63 https://git.kernel.org/stable/c/322271351b0e41565171e4cce70ea41854fac115 https://git.kernel.org/stable/c/fd5855e6b1358e816710afee68a1d2bc685176ca