CVE-2022-49558 json
netfilter: nf_tables: double hook unregistration in netns path
published 2025-02-26 20 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-54674
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.4.262, 5.10.198, 5.15.45, 5.17.13, 5.18.2, 5.19
- linux Debian 14, Debian 13, Debian 12 5.18.2-1
debian advisories DEBIAN-CVE-2022-49558
- linux Ubuntu 20.04 LTS 5.4.0-173.191
- linux Ubuntu 22.04 LTS 5.15.0-47.51
- linux-aws Ubuntu 20.04 LTS 5.4.0-1120.130
- linux-aws Ubuntu 22.04 LTS 5.15.0-1019.23
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1124.133
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1017.23
- linux-gke Ubuntu 22.04 LTS 5.15.0-1015.18
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1067.72
ubuntu advisories UBUNTU-CVE-2022-49558
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/b09e6ccf0d12f9356e8e3508d3e3dce126298538 commit
- git.kernel.org/stable/c/3fac8ce48fa9fd61ee9056d3ed48b2edefca8b82 commit
- git.kernel.org/stable/c/9c413a8c8bb49cc16796371805ecb260e885bb2b commit
- git.kernel.org/stable/c/a3940dcf552f2393d1e8f263b386593f98abe829 commit
- git.kernel.org/stable/c/86c0154f4c3a56c5db8b9dd09e3ce885382c2c19 commit
- git.kernel.org/stable/c/f9a43007d3f7ba76d5e7f9421094f00f2ef202f8 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-49558 updated cvss 5.5
kernel: netfilter: nf_tables: double hook unregistration in netns path
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/b09e6ccf0d12f9356e8e3508d3e3dce126298538
patch
-
git.kernel.org
/stable/c/3fac8ce48fa9fd61ee9056d3ed48b2edefca8b82
patch
-
git.kernel.org
/stable/c/9c413a8c8bb49cc16796371805ecb260e885bb2b
patch
-
git.kernel.org
/stable/c/a3940dcf552f2393d1e8f263b386593f98abe829
patch
-
git.kernel.org
/stable/c/86c0154f4c3a56c5db8b9dd09e3ce885382c2c19
patch
-
git.kernel.org
/stable/c/f9a43007d3f7ba76d5e7f9421094f00f2ef202f8
patch
Sources
- CVE List CVE-2022-49558
- NVD CVE-2022-49558
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.