In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix memleak when rule deletion fails with hardware offload Allocate flow rule object after transaction has been allocation and rule deactivation has been performed, otherwise memleak is possible. Let the transaction unwind the existing rule deactivation from the abort path, this needs to update nft_flow_rule_destroy() to skip release if flow_rule is null. While at this, remove check for non-null flow_rule in newrule error path now that nft_flow_rule_destroy() is skipped if flow_rule is null.
https://git.kernel.org/stable/c/e95b3be75ae0652d40a48a210f0cf5197b3b3783
https://git.kernel.org/stable/c/79f068d8a8dccad074604614d5cfd65553ed85df
https://git.kernel.org/stable/c/27003b068c80a5c3887d0b615cecda8b454d0973
https://git.kernel.org/stable/c/20fd0512514a3333395e52f1168e94b4a248a3d3
https://git.kernel.org/stable/c/15e5fbfe4ed3150816895bf6309f2c7009f8464b