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 83D2619A855 for ; Tue, 16 Jul 2024 12:29:10 +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=1721132950; cv=none; b=lGWYjPxHDINeItHwpEn1NggRHma7rw12i7IWDvXNxhKx9Dy7XSnJc5izj0ghyqO6lFiyoT6Dtvt0uIzN7g6VasXsNZCJbRAjZFVf2pwA249rcVe24tlzyoLx0QANZqMASvxm3TlrdG47GPR+1i4UyZDP9zn5or871VWMSGiFY60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721132950; c=relaxed/simple; bh=iqVkVFKGr5Qlg/BDzzJl1NVPPJk+LrC2Xt+ZvvqK6Cg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OQW2XSCZUhBa4pH/qWdA5ynI2bO/0AkkpyJfDFhsKuGEkh471PsYyZThZdAuuWoKAQXYVvL/vZh/JrZ1vE+KzzdSRxOYuuWMzwPV1XMf8L2CX2row+33eU13hgA8fUFYR6j5bsVZS9LWgFjIMECq3VTfAhAv2zovAMJLRUrlREM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yfse2zVR; 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="Yfse2zVR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6A18C116B1; Tue, 16 Jul 2024 12:29:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721132950; bh=iqVkVFKGr5Qlg/BDzzJl1NVPPJk+LrC2Xt+ZvvqK6Cg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Yfse2zVRvrC1JrkCUshnuRGdIN/g0xAc6aaq2lyDS5qQJKgERHOT1H27/TzBndD1M TCWxlFKgEDXD/6dcD6AO/JWSUc0bPEs+zq5XnjyuNLzD4rv3uGTgu5t1tM3sIfiojD sl9+ztIWnkXNR9LUrDg3TqdXFSmbUnp99HPqkvKM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48841: ice: fix NULL pointer dereference in ice_update_vsi_tx_ring_stats() Date: Tue, 16 Jul 2024 14:27:26 +0200 Message-ID: <2024071622-CVE-2022-48841-67c8@gregkh> X-Mailer: git-send-email 2.45.2 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=1985; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iqVkVFKGr5Qlg/BDzzJl1NVPPJk+LrC2Xt+ZvvqK6Cg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnT0rX2iphmS3hL+HaYa9uI/EqK8ma9IMRy58vxyulFu 7gaI2U6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCIPjBnm2R373uTZbv3wqkVa XNIehd+cV7+eZ1iwLd4qli0yJO1UkdftfpP6Hwxauw4AAA== 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: ice: fix NULL pointer dereference in ice_update_vsi_tx_ring_stats() It is possible to do NULL pointer dereference in routine that updates Tx ring stats. Currently only stats and bytes are updated when ring pointer is valid, but later on ring is accessed to propagate gathered Tx stats onto VSI stats. Change the existing logic to move to next ring when ring is NULL. The Linux kernel CVE team has assigned CVE-2022-48841 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit e72bba21355d and fixed in 5.16.17 with commit 2397270ec97c Issue introduced in 5.16 with commit e72bba21355d and fixed in 5.17 with commit f153546913ba 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-48841 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/ice/ice_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/2397270ec97c5e3009a58ac110a25e1869e9d6ff https://git.kernel.org/stable/c/f153546913bada41a811722f2c6d17c3243a0333