]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
openvswitch: Fix unsafe attribute parsing in output_userspace()
authorEelco Chaudron <echaudro@redhat.com>
Tue, 6 May 2025 14:28:54 +0000 (16:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:21:20 +0000 (08:21 +0200)
commitbca8df998cce1fead8cbc69144862eadc2e34c87
tree2b933ab449d99159ab28f82861a5f11bcbf9a801
parent7f61da79df86fd140c7768e668ad846bfa7ec8e1
openvswitch: Fix unsafe attribute parsing in output_userspace()

commit 6beb6835c1fbb3f676aebb51a5fee6b77fed9308 upstream.

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.

Fixes: ccb1352e76cf ("net: Add Open vSwitch kernel components.")
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Acked-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/0bd65949df61591d9171c0dc13e42cea8941da10.1746541734.git.echaudro@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/openvswitch/actions.c