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 73C8131D726 for ; Wed, 24 Dec 2025 10:59:52 +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=1766573992; cv=none; b=LajS0MnxmjMBs3O1ytYUXpNvTHEd3U+lQtgXOeg8r0Qx+jn8/3xLA6wjd6P+ZtKTZpxu8nTjwAmKL8IkFg6M1sxyFibBg5Zzrr9qZae+ck8MX2eKo6GzA6hTxukd0LLX0gDXA+OtTIPpMhAujwTLiI6ctrmEgN9nwXcjb0ZLdow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573992; c=relaxed/simple; bh=oMJ/I/+qQUb6t9ae3dkwMLfFyKSkTdhE23u/O5zXR+4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZIKq57IBddAu2ctgMC8huqyB46FUT9RO2Db1eigFju1It05GU4DpOKkQuAPLmYmRL/ccQWSGG5X1iHmiIFySK/11StWU7OpB5ol61QsCm/hTpeoedeEnBfX0vADpy+ubrosLCbDx8GayK7O7eVaPs/wuYuR84Fo7WzYzGEDYDqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JlqMcsAk; 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="JlqMcsAk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFA46C116B1; Wed, 24 Dec 2025 10:59:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573992; bh=oMJ/I/+qQUb6t9ae3dkwMLfFyKSkTdhE23u/O5zXR+4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=JlqMcsAkHeBtGkohT7+TaSwoc+5Mb9qoBYwU6mw+qLWH8vMn+le4sA9/Ty3kQNvor Gn1xvLRQPMbzfve1i7PJIfQeXdhU6gyvwiMMURZqeH6caYpT3qunjHmU+SIpumRQzG qN9aHnIynUwK8OSkumHwniYimGLco34VFK50MYvQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54040: ice: fix wrong fallback logic for FDIR Date: Wed, 24 Dec 2025 11:57:24 +0100 Message-ID: <2025122440-CVE-2023-54040-83dd@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2561; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7tiQG+H8sKDU6hnQxE/e/6Qt070dMUPWCtMVdMbbaHg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex15oBF4PvZaQbfzqYXrUIlmzrc7Lz8fxrfOdXxOcM qnfNierI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSoc4wP0HribnQ7+d+pULv JZcb2jLN2L9kO8OCRfuW3boVEivu+3yZ1qpJf7Y058cwAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ice: fix wrong fallback logic for FDIR When adding a FDIR filter, if ice_vc_fdir_set_irq_ctx returns failure, the inserted fdir entry will not be removed and if ice_vc_fdir_write_fltr returns failure, the fdir context info for irq handler will not be cleared which may lead to inconsistent or memory leak issue. This patch refines failure cases to resolve this issue. The Linux kernel CVE team has assigned CVE-2023-54040 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 1f7ea1cd6a3748427512ccc9582e18cd9efea966 and fixed in 5.15.107 with commit 391d28c0e38c0e5b11a4240a2b4976cf63e87f45 Issue introduced in 5.13 with commit 1f7ea1cd6a3748427512ccc9582e18cd9efea966 and fixed in 6.1.24 with commit aad3b871efe26f36f45f8b4649653b5d3fd9c35e Issue introduced in 5.13 with commit 1f7ea1cd6a3748427512ccc9582e18cd9efea966 and fixed in 6.2.11 with commit cbfed5f114b5310f221979fc8190f55c6abc3400 Issue introduced in 5.13 with commit 1f7ea1cd6a3748427512ccc9582e18cd9efea966 and fixed in 6.3 with commit b4a01ace20f5c93c724abffc0a83ec84f514b98d 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-2023-54040 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_virtchnl_fdir.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/391d28c0e38c0e5b11a4240a2b4976cf63e87f45 https://git.kernel.org/stable/c/aad3b871efe26f36f45f8b4649653b5d3fd9c35e https://git.kernel.org/stable/c/cbfed5f114b5310f221979fc8190f55c6abc3400 https://git.kernel.org/stable/c/b4a01ace20f5c93c724abffc0a83ec84f514b98d