CVE-2022-49558

netfilter: nf_tables: double hook unregistration in netns path

No CVSS score yet EPSS 0.28%

Published 26 Feb 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2022-49558

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49558 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.2% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from b110391d1e806167254d3c7ae5d637191d913175, before b09e6ccf0d12f9356e8e3508d3e3dce126298538
affected from 0a0e5d47670b753d3dbf88f3c77a97a30864d9bd, before 3fac8ce48fa9fd61ee9056d3ed48b2edefca8b82
affected from 767d1216bff82507c945e92fe719dff2083bb2f4, before 9c413a8c8bb49cc16796371805ecb260e885bb2b
affected from 767d1216bff82507c945e92fe719dff2083bb2f4, before a3940dcf552f2393d1e8f263b386593f98abe829
affected from 767d1216bff82507c945e92fe719dff2083bb2f4, before 86c0154f4c3a56c5db8b9dd09e3ce885382c2c19
affected from 767d1216bff82507c945e92fe719dff2083bb2f4, before f9a43007d3f7ba76d5e7f9421094f00f2ef202f8
affected from 5.4.99, before 5.4.262
affected from 5.10.17, before 5.10.198
Other versions: unaffected
Linux
affected 5.11
unaffected before 5.11
unaffected from 5.4.262 up to and including 5.4.*
unaffected from 5.10.198 up to and including 5.10.*
unaffected from 5.15.45 up to and including 5.15.*
unaffected from 5.17.13 up to and including 5.17.*
unaffected from 5.18.2 up to and including 5.18.*
unaffected 5.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49558 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49558

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-49558
trivy image --scanners vuln IMAGE | grep CVE-2022-49558

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-49558 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.