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 2CC7C7DA93 for ; Tue, 1 Apr 2025 15:47:44 +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=1743522465; cv=none; b=D1Yp2gQPzijr8zoLddQI+/RWNHB3jHm2BZmHWTmOc/ERWToZrLDXFJTBOA1x4amPCkMeV8H2t6i4rFkNbus7GIizoN7ZtlhzYGlzVhY9uNXVdP1G9YsGZVuHrcJc1MlRnhSgpfpvmZWoKO0gFiRHNTud08uSGIGU51ysIG3Wx6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522465; c=relaxed/simple; bh=1mYmqgxteF76NvkPnmI6w8L0kDdE9byfVoBa9ByW9SE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HdkTQFGqfs/9/whrtpdhLnyv5ipVczLTJ369EKVJHwTR1ya+TFBBpyUAB1aXY5XRJ6TJ/fRIzivobNX4PFd1d1MkjLCvCpeqQMepEM4RjbFxGdvgcjH8EooyXJIbWpAXfWYkEeHkODFe6o/EPCLaryDI93DDpNRAoDKCrBvtkY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=et/nJt5F; 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="et/nJt5F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F0C7C4CEE4; Tue, 1 Apr 2025 15:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522464; bh=1mYmqgxteF76NvkPnmI6w8L0kDdE9byfVoBa9ByW9SE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=et/nJt5FxakTXK/D6Llep73DpO/4uft4pUtVcbgzGhHkLYiYKrIPhX0lCjmOWhTzg Y2/rQ8b4XTsohOWI9bnx++oOFurTnyFvkh2TpdWua5yZOiYmpHmeAO3+WlEUWkaL8f EwTJCCLQ1681pQsTxl2Y9rc6OIRAOuNa0Gh2csW8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21958: Revert "openvswitch: switch to per-action label counting in conntrack" Date: Tue, 1 Apr 2025 16:45:43 +0100 Message-ID: <2025040144-CVE-2025-21958-c94c@gregkh> X-Mailer: git-send-email 2.49.0 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=2876; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1mYmqgxteF76NvkPnmI6w8L0kDdE9byfVoBa9ByW9SE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvuDRq3SzSAy9qfHies4T1ZOCxjY9Wusdlsu7e5Cfs5 hNk5pfaEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPRD2BYcF5z0fm29nkv1eNq d7AseZrt+1pfhGFB18M5VY8NavsPzHwUHrIo16LnQro8AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: Revert "openvswitch: switch to per-action label counting in conntrack" Currently, ovs_ct_set_labels() is only called for confirmed conntrack entries (ct) within ovs_ct_commit(). However, if the conntrack entry does not have the labels_ext extension, attempting to allocate it in ovs_ct_get_conn_labels() for a confirmed entry triggers a warning in nf_ct_ext_add(): WARN_ON(nf_ct_is_confirmed(ct)); This happens when the conntrack entry is created externally before OVS increments net->ct.labels_used. The issue has become more likely since commit fcb1aa5163b1 ("openvswitch: switch to per-action label counting in conntrack"), which changed to use per-action label counting and increment net->ct.labels_used when a flow with ct action is added. Since there’s no straightforward way to fully resolve this issue at the moment, this reverts the commit to avoid breaking existing use cases. The Linux kernel CVE team has assigned CVE-2025-21958 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit fcb1aa5163b1ae4cf2864b688b08927aac51f51e and fixed in 6.12.20 with commit 9e79fdabd52cfce1a021640a81256878a2c516a2 Issue introduced in 6.12 with commit fcb1aa5163b1ae4cf2864b688b08927aac51f51e and fixed in 6.13.8 with commit d91bfc64a4886102746e74d2c6f3a61e9a77fd7d Issue introduced in 6.12 with commit fcb1aa5163b1ae4cf2864b688b08927aac51f51e and fixed in 6.14 with commit 1063ae07383c0ddc5bcce170260c143825846b03 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-2025-21958 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: net/openvswitch/conntrack.c net/openvswitch/datapath.h 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/9e79fdabd52cfce1a021640a81256878a2c516a2 https://git.kernel.org/stable/c/d91bfc64a4886102746e74d2c6f3a61e9a77fd7d https://git.kernel.org/stable/c/1063ae07383c0ddc5bcce170260c143825846b03