mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
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: ccb1352e76 ("net: Add Open vSwitch kernel components.")
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=b07a9da40df1576b8048
Tested-by: [email protected]
Signed-off-by: Ilya Maximets <[email protected]>
Reviewed-by: Eelco Chaudron <[email protected]>
Acked-by: Aaron Conole <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>