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 9E0584EB51 for ; Thu, 27 Feb 2025 02:18: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=1740622724; cv=none; b=cKXt+FZlyXc0wCTIxvqLqYgobULHfT14sH62ZB+XtlRWmwFiYP38qTXhsvG9D95JkUV/BuLIW18WAri92vyg9WqLOLvr9oa7r5G15QWzIw0aEYAUUObBBNb5V9ENImdWYa8EoNHRgFKiSwHkWwOwaUuo737XKF9WlqZiePnHuNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622724; c=relaxed/simple; bh=Hp0b2/D5F2h1VkZmzdRIsIqPsPUtBBG7TQkeey0NvY0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EPKJkDq50nvufRq4UdwmKHqO9BGxL8BltA7+UwEGBKwrXgLG8RHPXjr5uGuni5VwcMaDtEsHx2L1d+pdWLH1Nfp7yDAyqpSOcYitc7W1yMx8np0LGb2mwDb+4zZArn4QDXczVWaP2ULutySNcdODCautnCnvR5twX8ZnMS4vyWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m9f6dS7v; 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="m9f6dS7v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05427C4CED6; Thu, 27 Feb 2025 02:18:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622724; bh=Hp0b2/D5F2h1VkZmzdRIsIqPsPUtBBG7TQkeey0NvY0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=m9f6dS7vaFGk36bQOTwcEPBBpVTilSweI8y+ygqL5m8Dhj8C0MsX0x6dnuPntYfuD F+E2FTD5XCdh+IWXqBQWFwFg+SCzGM/2qnUKAsFofbB8L1nZSH+hksKcjw2dS4NTUc W9dDqkV5kiwkPTRoXbiPm5z1xBP4tdMPfblysey4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21761: openvswitch: use RCU protection in ovs_vport_cmd_fill_info() Date: Wed, 26 Feb 2025 18:17:17 -0800 Message-ID: <2025022604-CVE-2025-21761-218b@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=2584; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Hp0b2/D5F2h1VkZmzdRIsIqPsPUtBBG7TQkeey0NvY0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7TyvkzfXduWSiYpJuO/vp5XaF4q9zJiqFi1j2PjMqs E2vvHq2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayQINhwfLo/baxJTe/iq96 teRlZIXpksW33jLMs5lybssbX/Po8lMhC7de2bVrbvAxAwA= 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: openvswitch: use RCU protection in ovs_vport_cmd_fill_info() ovs_vport_cmd_fill_info() can be called without RTNL or RCU. Use RCU protection and dev_net_rcu() to avoid potential UAF. The Linux kernel CVE team has assigned CVE-2025-21761 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 9354d452034273a50a4fd703bea31e5d6b1fc20b and fixed in 6.1.129 with commit 7e01abc34e87abd091e619161a20f54ed4e3e2da Issue introduced in 4.15 with commit 9354d452034273a50a4fd703bea31e5d6b1fc20b and fixed in 6.6.79 with commit 8ec57509c36c8b9a23e50b7858dda0c520a2d074 Issue introduced in 4.15 with commit 9354d452034273a50a4fd703bea31e5d6b1fc20b and fixed in 6.12.16 with commit a849a10de5e04d798f7f286a2f1ca174719a617a Issue introduced in 4.15 with commit 9354d452034273a50a4fd703bea31e5d6b1fc20b and fixed in 6.13.4 with commit 5828937742af74666192835d657095d95c53dbd0 Issue introduced in 4.15 with commit 9354d452034273a50a4fd703bea31e5d6b1fc20b and fixed in 6.14-rc3 with commit 90b2f49a502fa71090d9f4fe29a2f51fe5dff76d 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-21761 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/datapath.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/7e01abc34e87abd091e619161a20f54ed4e3e2da https://git.kernel.org/stable/c/8ec57509c36c8b9a23e50b7858dda0c520a2d074 https://git.kernel.org/stable/c/a849a10de5e04d798f7f286a2f1ca174719a617a https://git.kernel.org/stable/c/5828937742af74666192835d657095d95c53dbd0 https://git.kernel.org/stable/c/90b2f49a502fa71090d9f4fe29a2f51fe5dff76d