In the Linux kernel, the following vulnerability has been resolved:netfilter: nf_tables: don't unregister hook when table is dormantWhen nf_tables_updchain encounters an error, hook registration needs to
be rolled back.This should only be done if the hook has been registered, which won't
happen when the table is flagged as dormant (inactive).Just move the assignment into the registration block.