In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: TC, Fix double free of branch in failure When allocating the false branch fails in parse_branch_ctrl(), the already allocated true branch is freed but attr->branch_true is left pointing to it. The caller parse_tc_actions() fails the flow, and free_flow_post_acts(), mlx5_free_flow_attr_actions() which calls again free_branch_attr() on attr->branch_true. Clear the pointer after freeing it. This bug is theoretical and was compile tested only.
https://git.kernel.org/stable/c/4dfba871c220c3581dada988f6ba57104163111c
https://git.kernel.org/stable/c/46296baedd20ca100cdc2260415d02a65596e76d
https://git.kernel.org/stable/c/31f9b43a3bb3d2201eadd147440252d0912dab21
https://git.kernel.org/stable/c/014272105371b140affcee740039cb5f6dc63baa