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 0CC91647 for ; Thu, 29 May 2025 13:16:24 +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=1748524585; cv=none; b=f09mJ4xQ0UT8UjeTUWaw74/YucS70GrUooJCbxkc5tVhWBaGitoG9lxJO4Srq6m6ETnOw6gX7fHipjmWqwubTGwSU3pa4gvyVJbaD1BARECt3+UE9WWbON0UhXatRVE/CA3qAtN0jvpbf+zL1upgQNS/7jg/ZS4es2/pXtTsTw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748524585; c=relaxed/simple; bh=XxKDOqpwlQUIETWyKM2ufBdyVXK2Xv/fJE0ZVjokwl8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sUxHqelsPAi8Y56vFPOhDQiyxFJ7t+y9nxkEYVDNW7PqNSkp68hIR9o92KM2boNvxBnCOPHMa/Jvk3BTyz4jQG1kn94S4aS/GR6agCbRoMqDbkRudhHuMkKZGNWQfL8Rqi5zCACGwWY4fsssQo2l6EmTSTGxsPh2kvTDYEWEFmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mgEhKe2Q; 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="mgEhKe2Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0570FC4CEE7; Thu, 29 May 2025 13:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748524584; bh=XxKDOqpwlQUIETWyKM2ufBdyVXK2Xv/fJE0ZVjokwl8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mgEhKe2QS8RzjRcckg++RH9cOZOdBu1P8EuZ4z6e4YZj3wa4TKyE4PZuAexk24zKI WVsv9BTp3jYf1rnt/NsgbhNA1Hcbh42ZFfIAc8774nRRSIdz/5pahz0qdQys2Cp25H 4eE4oiQZPDDatGZLvnX7J31OjebGy5fsojq8rgY4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37998: openvswitch: Fix unsafe attribute parsing in output_userspace() Date: Thu, 29 May 2025 15:16:05 +0200 Message-ID: <2025052903-CVE-2025-37998-10fb@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=2854; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g8VJKUjpzS1VdyZGv+ChNSxlbt4txDalMhLvLSeeSNE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkWccJ6a941PJJta/01QU85aPf6ySUHrRJ/JvQ4VTKon FzguUu8I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZy+BHD/KTFky/UTU6TvOBY z+SuN3FKznKeWQzzlB3lGi6/lT5f1ySutC///RbdXY8yAQ== 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: openvswitch: Fix unsafe attribute parsing in output_userspace() This patch replaces the manual Netlink attribute iteration in output_userspace() with nla_for_each_nested(), which ensures that only well-formed attributes are processed. The Linux kernel CVE team has assigned CVE-2025-37998 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 5.15.183 with commit 47f7f00cf2fa3137d5c0416ef1a71bdf77901395 Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.1.139 with commit bca8df998cce1fead8cbc69144862eadc2e34c87 Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.6.91 with commit 0236742bd959332181c1fcc41a05b7b709180501 Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.12.29 with commit ec334aaab74705cc515205e1da3cb369fdfd93cd Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.14.7 with commit 4fa672cbce9c86c3efb8621df1ae580d47813430 Issue introduced in 3.3 with commit ccb1352e76cff0524e7ccb2074826a092dd13016 and fixed in 6.15 with commit 6beb6835c1fbb3f676aebb51a5fee6b77fed9308 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-37998 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/actions.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/47f7f00cf2fa3137d5c0416ef1a71bdf77901395 https://git.kernel.org/stable/c/bca8df998cce1fead8cbc69144862eadc2e34c87 https://git.kernel.org/stable/c/0236742bd959332181c1fcc41a05b7b709180501 https://git.kernel.org/stable/c/ec334aaab74705cc515205e1da3cb369fdfd93cd https://git.kernel.org/stable/c/4fa672cbce9c86c3efb8621df1ae580d47813430 https://git.kernel.org/stable/c/6beb6835c1fbb3f676aebb51a5fee6b77fed9308