CVE-2021-47452
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
22/05/2024
Last modified:
29/09/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
netfilter: nf_tables: skip netdev events generated on netns removal<br />
<br />
syzbot reported following (harmless) WARN:<br />
<br />
WARNING: CPU: 1 PID: 2648 at net/netfilter/core.c:468<br />
nft_netdev_unregister_hooks net/netfilter/nf_tables_api.c:230 [inline]<br />
nf_tables_unregister_hook include/net/netfilter/nf_tables.h:1090 [inline]<br />
__nft_release_basechain+0x138/0x640 net/netfilter/nf_tables_api.c:9524<br />
nft_netdev_event net/netfilter/nft_chain_filter.c:351 [inline]<br />
nf_tables_netdev_event+0x521/0x8a0 net/netfilter/nft_chain_filter.c:382<br />
<br />
reproducer:<br />
unshare -n bash -c &#39;ip link add br0 type bridge; nft add table netdev t ; \<br />
nft add chain netdev t ingress \{ type filter hook ingress device "br0" \<br />
priority 0\; policy drop\; \}&#39;<br />
<br />
Problem is that when netns device exit hooks create the UNREGISTER<br />
event, the .pre_exit hook for nf_tables core has already removed the<br />
base hook. Notifier attempts to do this again.<br />
<br />
The need to do base hook unregister unconditionally was needed in the past,<br />
because notifier was last stage where reg->dev dereference was safe.<br />
<br />
Now that nf_tables does the hook removal in .pre_exit, this isn&#39;t<br />
needed anymore.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.4.99 (including) | 5.5 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.10.17 (including) | 5.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11.1 (including) | 5.14.15 (excluding) |
| cpe:2.3:o:linux:linux_kernel:5.11:-:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc6:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



