Skip to content
Commit 65d91192 authored by Ilya Maximets's avatar Ilya Maximets Committed by Jakub Kicinski
Browse files

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.

Fixes: ccb1352e ("net: Add Open vSwitch kernel components.")
Reported-by: default avatar <syzbot+b07a9da40df1576b8048@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=b07a9da40df1576b8048


Tested-by: default avatar <syzbot+b07a9da40df1576b8048@syzkaller.appspotmail.com>
Signed-off-by: default avatarIlya Maximets <i.maximets@ovn.org>
Reviewed-by: default avatarEelco Chaudron <echaudro@redhat.com>
Acked-by: default avatarAaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/20250412104052.2073688-1-i.maximets@ovn.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 186e5888
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment