# CVE-2022-49558: netfilter: nf\_tables: double hook unregistration in netns path

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-26 · Modified: 2026-05-23
- Aliases: UBUNTU-CVE-2022-49558, DEBIAN-CVE-2022-49558
- Record: https://cvemate.com/vulnerability/CVE-2022-49558 · JSON: https://cvemate.com/vulnerability/CVE-2022-49558/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

netfilter: nf_tables: double hook unregistration in netns path

__nft_release_hooks() is called from pre_netns exit path which
unregisters the hooks, then the NETDEV_UNREGISTER event is triggered
which unregisters the hooks again.

[  565.221461] WARNING: CPU: 18 PID: 193 at net/netfilter/core.c:495 __nf_unregister_net_hook+0x247/0x270
[...]
[  565.246890] CPU: 18 PID: 193 Comm: kworker/u64:1 Tainted: G            E     5.18.0-rc7+ #27
[  565.253682] Workqueue: netns cleanup_net
[  565.257059] RIP: 0010:__nf_unregister_net_hook+0x247/0x270
[...]
[  565.297120] Call Trace:
[  565.300900]  <TASK>
[  565.304683]  nf_tables_flowtable_event+0x16a/0x220 [nf_tables]
[  565.308518]  raw_notifier_call_chain+0x63/0x80
[  565.312386]  unregister_netdevice_many+0x54f/0xb50

Unregister and destroy netdev hook from netns pre_exit via kfree_rcu
so the NETDEV_UNREGISTER path see unregistered hooks.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.284%, percentile 22.453%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 112)

- debian linux (Debian): \< 5.18.2-1
- ubuntu linux (Ubuntu): \< 5.4.0-173.191 \| \< 5.15.0-47.51
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1120.130 \| \< 5.15.0-1019.23
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1019.23~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1120.130~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1120.130+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1126.133 \| \< 5.15.0-1019.24
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1019.24~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/b09e6ccf0d12f9356e8e3508d3e3dce126298538>
- <https://git.kernel.org/stable/c/3fac8ce48fa9fd61ee9056d3ed48b2edefca8b82>
- <https://git.kernel.org/stable/c/9c413a8c8bb49cc16796371805ecb260e885bb2b>
- <https://git.kernel.org/stable/c/a3940dcf552f2393d1e8f263b386593f98abe829>
- <https://git.kernel.org/stable/c/86c0154f4c3a56c5db8b9dd09e3ce885382c2c19>
- <https://git.kernel.org/stable/c/f9a43007d3f7ba76d5e7f9421094f00f2ef202f8>
- <https://ubuntu.com/security/CVE-2022-49558>
- <https://www.cve.org/CVERecord?id=CVE-2022-49558>
- <https://git.kernel.org/linus/f9a43007d3f7ba76d5e7f9421094f00f2ef202f8>
- <https://git.kernel.org/stable/c/c73955a09408e7374d9abfd0e78ce3de9cda0635>
- <https://security-tracker.debian.org/tracker/CVE-2022-49558>

---

Data as of 2026-12-05T03:23:40.970Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
