Skip to contentSkip to conversation

CVE-2025-37998: openvswitch: Fix unsafe attribute parsing in output_userspace()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 29, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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