summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorKadlecsik József <kadlec@blackhole.kfki.hu>2020-01-25 22:39:25 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2020-01-29 20:34:46 +0300
commit5038517119d50ed0240059b1d7fc2faa92371c08 (patch)
tree734a5ef3cf9088a851c29056ad9c65ef98eb3cbd /security
parent44efc78d0e464ce70b45b165c005f8bedc17952e (diff)
downloadlinux-5038517119d50ed0240059b1d7fc2faa92371c08.tar.xz
netfilter: ipset: fix suspicious RCU usage in find_set_and_id
find_set_and_id() is called when the NFNL_SUBSYS_IPSET mutex is held. However, in the error path there can be a follow-up recvmsg() without the mutex held. Use the start() function of struct netlink_dump_control instead of dump() to verify and report if the specified set does not exist. Thanks to Pablo Neira Ayuso for helping me to understand the subleties of the netlink protocol. Reported-by: syzbot+fc69d7cb21258ab4ae4d@syzkaller.appspotmail.com Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions