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 96C55155A25 for ; Thu, 1 May 2025 13:08:39 +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=1746104919; cv=none; b=PMjAsfEqSktYMBYZk1LkH40i3xLojf9y+qxAweGciB+ETgZSJaSmvmWe/lVYveCEDJCdy1iPouEzwZgJxQs7yjkjnOQCXhyCr2fr4nlslxDdOnBvGJNfOfxZCEA48O3XElwo2IUh8IZqh1vVlQEY/wTJE1A38oPPrKGUYI5jXhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104919; c=relaxed/simple; bh=Lmh9UZ4GQxTSGDv/Sgml+WkPx9Jv6BY9VJrHyEggLBw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DjJ7UJcGQHLACVzV1YMRXPCgPI6Zt5lsoRDKbBQKM+f7wTNvkjXiJ3wMF46R6pnlkgsZ0x9VgVciZ7k5N0Bw+pxlyMxqpSvMZ2a+Aj7JtkODulHRw3OAsuaJtB3DDsvPEY6RJacQ2LhgaOxeync21vxteXMWP0SzWa73pJb7I5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=na1KcXhs; 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="na1KcXhs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50958C4CEE3; Thu, 1 May 2025 13:08:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104919; bh=Lmh9UZ4GQxTSGDv/Sgml+WkPx9Jv6BY9VJrHyEggLBw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=na1KcXhsX6gaEHa0a6zWQ5HYyt4uiMXwsixcA0i/S9NGA2XIsz5HG0WzWE9Sb1UmA MXS3eoavMTdtCOVty7FEd9PWSkfBo2hXBU9WCiIQ1bmZihqME6+vWRSyiasW6ynBbT XYnqZxqIBwdd5R46fXFx6yEOyfmYOHyp8l8NCmsM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37789: net: openvswitch: fix nested key length validation in the set() action Date: Thu, 1 May 2025 15:07:36 +0200 Message-ID: <2025050119-CVE-2025-37789-3f0b@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=2597; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TUwalS5MhOOz9JzFDLMHDtDjzZWF5N+Puqw/OQEptwA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCRexCeWvizix+F72b40PpOpb2nW83P8gs/7r+bmK3V uUf/y8lHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARvSMMC04yNXc7Lv+57+4b LTH+rjPsPi6JSxgWtGtXrF50klUoImbZ/O3Ks49fF3/xCQA= 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: net: openvswitch: fix nested key length validation in the set() action It's not safe to access nla_len(ovs_key) if the data is smaller than the netlink header. Check that the attribute is OK first. The Linux kernel CVE team has assigned CVE-2025-37789 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.1.135 with commit 1489c195c8eecd262aa6712761ba5288203e28ec Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.6.88 with commit 824a7c2df5127b2402b68a21a265d413e78dcad7 Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.12.25 with commit be80768d4f3b6fd13f421451cc3fee8778aba8bc Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.14.4 with commit 03d7262dd53e8c404da35cc81aaa887fd901f76b Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.15-rc3 with commit 65d91192aa66f05710cfddf6a14b5a25ee554dba 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-37789 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/flow_netlink.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/1489c195c8eecd262aa6712761ba5288203e28ec https://git.kernel.org/stable/c/824a7c2df5127b2402b68a21a265d413e78dcad7 https://git.kernel.org/stable/c/be80768d4f3b6fd13f421451cc3fee8778aba8bc https://git.kernel.org/stable/c/03d7262dd53e8c404da35cc81aaa887fd901f76b https://git.kernel.org/stable/c/65d91192aa66f05710cfddf6a14b5a25ee554dba