Commit 65d9119
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: ccb1352 ("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]>1 parent 186e588 commit 65d9119
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2876 | 2876 | | |
2877 | 2877 | | |
2878 | 2878 | | |
2879 | | - | |
| 2879 | + | |
| 2880 | + | |
2880 | 2881 | | |
2881 | 2882 | | |
2882 | 2883 | | |
| |||
0 commit comments