netfilter: nf_tables: don't unregister hook when table is dormant
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
d131ce7a319d3bff68d5a9d5509bb22e4ce33946| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: don't unregister hook when table is dormant
When 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.
From the CVE record · Linux
In the Linux kernel, nf_tables_updchain can attempt to unregister a hook after an error even when the table is dormant and the hook was never registered. The input does not specify how an attacker could trigger this condition, what they could accomplish, or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified.