[ovs-dev] [PATCH v2] netdev-linux: Fix a null pointer dereference in netdev_linux_notify_sock()

Flavio Leitner fbl at sysclose.org
Sat Sep 11 21:45:54 UTC 2021


On Sat, Sep 11, 2021 at 02:34:47PM +0800, Yunjian Wang wrote:
> If nl_sock_join_mcgroup() returns an error, the 'sock' is freed and
> set to NULL. This issues will lead to null pointer deference in
> nl_sock_listen_all_nsid(). To fix it, we call nl_sock_listen_all_nsid()
> before joining the mcgroups.
> 
> Fixes: cf114a7fce80 ("netlink linux: enable listening to all nsids")
> Cc: Flavio Leitner <fbl at redhat.com>
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
> ---

Acked-by: Flavio Leitner <fbl at sysclose.org>



More information about the dev mailing list