netfilter: nf_tables: set dormant flag on hook register failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 179d9ba5559a756f4322583388b3213fe4e391b0 · < f2135bbf14949687e96cabb13d8a91ae3deb9069| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: set dormant flag on hook register failure
We need to set the dormant flag again if we fail to register the hooks.
During memory pressure hook registration can fail and we end up with a table marked as active but no registered hooks.
On table/base chain deletion, nf_tables will attempt to unregister the hook again which yields a warn splat from the nftables core.
From the CVE record · Linux
In the Linux kernel, nf_tables can leave a table marked active without registered hooks if hook registration fails during memory pressure. Deleting the table or base chain can then trigger a warning when nf_tables attempts to unregister the hook. The input does not establish an attacker path or specify authentication or user-interaction requirements.
Engineers running Linux kernels with nf_tables should check their kernel versions against the vendor advisory; affected versions are not specified in the input.