[ovs-dev] [PATCH net-next] openvswitch: use after free in __ovs_ct_free_action()

Yi-Hung Wei yihung.wei at gmail.com
Tue Apr 2 17:05:24 UTC 2019


On Mon, Apr 1, 2019 at 11:53 PM Dan Carpenter <dan.carpenter at oracle.com> wrote:
>
> We free "ct_info->ct" and then use it on the next line when we pass it
> to nf_ct_destroy_timeout().  This patch swaps the order to avoid the use
> after free.
>
> Fixes: 06bd2bdf19d2 ("openvswitch: Add timeout support to ct action")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> ---
Thanks for the fix.

Acked-by: Yi-Hung Wei <yihung.wei at gmail.com>


More information about the dev mailing list