CVE-2022-49558: netfilter: nf_tables: double hook unregistration in netns path

Published Feb 26, 2025
·
Updated

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

netfilter: nftables: double hook unregistration in netns path

nftreleasehooks() is called from prenetns exit path which unregisters the hooks, then the NETDEVUNREGISTER event is triggered which unregisters the hooks again.

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

Unregister and destroy netdev hook from netns preexit via kfreercu so the NETDEVUNREGISTER path see unregistered hooks.

Affected Software

134 affected componentsFixes available
Linux Foundation Linux Kernel>=5.18.0-rc7
Linux Linux kernel>=5.4.99<5.4.262
Linux Linux kernel>=5.10.17<5.10.198
Linux Linux kernel>=5.11.1<5.15.45
Linux Linux kernel>=5.16<5.17.13
Linux Linux kernel>=5.18<5.18.2
Linux Linux kernel=5.11
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-aws-5.4<5.4.0-1120.130~18.04.1
5.4.0-1120.130~18.04.1
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-5.4<5.4.0-1126.133~18.04.1
5.4.0-1126.133~18.04.1
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gcp-5.4<5.4.0-1124.133~18.04.1
5.4.0-1124.133~18.04.1
ubuntu/linux-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
ubuntu/linux-hwe*
ubuntu/linux-hwe-5.4<5.4.0-173.191~18.04.1
5.4.0-173.191~18.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-ibm-5.4<5.4.0-1067.72~18.04.1
5.4.0-1067.72~18.04.1
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-oracle-5.4<5.4.0-1119.128~18.04.1
5.4.0-1119.128~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1104.116~18.04.1
5.4.0-1104.116~18.04.1
ubuntu/linux<5.4.0-173.191
5.4.0-173.191
ubuntu/linux-aws<5.4.0-1120.130
5.4.0-1120.130
ubuntu/linux-aws-5.15<5.15.0-1019.23~20.04.1
5.15.0-1019.23~20.04.1
ubuntu/linux-azure<5.4.0-1126.133
5.4.0-1126.133
ubuntu/linux-azure-5.15<5.15.0-1019.24~20.04.1
5.15.0-1019.24~20.04.1
ubuntu/linux-bluefield<5.4.0-1080.87
5.4.0-1080.87
ubuntu/linux-gcp<5.4.0-1124.133
5.4.0-1124.133
ubuntu/linux-gcp-5.15<5.15.0-1017.23~20.04.2
5.15.0-1017.23~20.04.2
ubuntu/linux-hwe-5.15<5.15.0-48.54~20.04.1
5.15.0-48.54~20.04.1
ubuntu/linux-ibm<5.4.0-1067.72
5.4.0-1067.72
ubuntu/linux-intel-iotg-5.15<5.15.0-1015.20~20.04.2
5.15.0-1015.20~20.04.2
ubuntu/linux-iot<5.4.0-1032.33
5.4.0-1032.33
ubuntu/linux-kvm<5.4.0-1108.115
5.4.0-1108.115
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-48.54~20.04.1
5.15.0-48.54~20.04.1
ubuntu/linux-oracle<5.4.0-1119.128
5.4.0-1119.128
ubuntu/linux-oracle-5.15<5.15.0-1017.22~20.04.1
5.15.0-1017.22~20.04.1
ubuntu/linux-raspi<5.4.0-1104.116
5.4.0-1104.116
ubuntu/linux-riscv-5.15<5.15.0-1018.21~20.04.1
5.15.0-1018.21~20.04.1
ubuntu/linux-xilinx-zynqmp<5.4.0-1039.43
5.4.0-1039.43
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.8*
ubuntu/linux-azure-fde*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.8*
ubuntu/linux-gke*
ubuntu/linux-gke-5.15*
ubuntu/linux-gkeop*
ubuntu/linux-gkeop-5.15*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1120.130+fips1
5.4.0-1120.130+fips1
ubuntu/linux-azure-fips<5.4.0-1126.133+fips1
5.4.0-1126.133+fips1
ubuntu/linux-fips<5.4.0-1094.104
5.4.0-1094.104
ubuntu/linux-gcp-fips<5.4.0-1124.133+fips1
5.4.0-1124.133+fips1
ubuntu/linux-fips*
ubuntu/linux<5.15.0-47.51
5.15.0-47.51
ubuntu/linux-allwinner-5.19*
ubuntu/linux-aws<5.15.0-1019.23
5.15.0-1019.23
ubuntu/linux-aws-5.19*
ubuntu/linux-aws-6.2*
ubuntu/linux-aws-6.5*
ubuntu/linux-azure<5.15.0-1019.24
5.15.0-1019.24
ubuntu/linux-azure-5.19*
ubuntu/linux-azure-6.2*
ubuntu/linux-azure-6.5*
ubuntu/linux-azure-fde-5.19*
ubuntu/linux-azure-fde-6.2*
ubuntu/linux-gcp<5.15.0-1017.23
5.15.0-1017.23
ubuntu/linux-gcp-5.19*
ubuntu/linux-gcp-6.2*
ubuntu/linux-gcp-6.5*
ubuntu/linux-gke<5.15.0-1015.18
5.15.0-1015.18
ubuntu/linux-gkeop<5.15.0-1002.4
5.15.0-1002.4
ubuntu/linux-hwe-5.19*
ubuntu/linux-hwe-6.2*
ubuntu/linux-hwe-6.5*
ubuntu/linux-ibm<5.15.0-1013.15
5.15.0-1013.15
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-intel-iotg<5.15.0-1015.20
5.15.0-1015.20
ubuntu/linux-kvm<5.15.0-1017.21
5.15.0-1017.21
ubuntu/linux-lowlatency<5.15.0-47.53
5.15.0-47.53
ubuntu/linux-lowlatency-hwe-5.19*
ubuntu/linux-lowlatency-hwe-6.2*
ubuntu/linux-lowlatency-hwe-6.5*
ubuntu/linux-nvidia<5.15.0-1007.7
5.15.0-1007.7
ubuntu/linux-nvidia-6.2*
ubuntu/linux-nvidia-6.5*
ubuntu/linux-oem-5.17*
ubuntu/linux-oem-6.0*
ubuntu/linux-oem-6.1*
ubuntu/linux-oem-6.5*
ubuntu/linux-oracle<5.15.0-1017.22
5.15.0-1017.22
ubuntu/linux-oracle-6.5*
ubuntu/linux-raspi<5.15.0-1014.16
5.15.0-1014.16
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.19*
ubuntu/linux-riscv-6.5*
ubuntu/linux-starfive-5.19*
ubuntu/linux-starfive-6.2*
ubuntu/linux-starfive-6.5*
ubuntu/linux-realtime<5.15.0-1020.20
5.15.0-1020.20
ubuntu/linux-raspi-realtime*
debian/linux<5.18.2-1
5.18.2-1
debian/linux<5.18.2-1
5.18.2-1
debian/linux<5.18.2-1
5.18.2-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1120.130~18.04.1
  2. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1126.133~18.04.1
  3. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1124.133~18.04.1
  4. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-173.191~18.04.1
  5. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1067.72~18.04.1
  6. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1119.128~18.04.1
  7. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1104.116~18.04.1
  8. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-173.191
  9. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1120.130
  10. Upgrade

    Upgrade ubuntu/linux-aws-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1019.23~20.04.1
  11. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1126.133
  12. Upgrade

    Upgrade ubuntu/linux-azure-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1019.24~20.04.1
  13. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1080.87
  14. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1124.133
  15. Upgrade

    Upgrade ubuntu/linux-gcp-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.23~20.04.2
  16. Upgrade

    Upgrade ubuntu/linux-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-48.54~20.04.1
  17. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1067.72
  18. Upgrade

    Upgrade ubuntu/linux-intel-iotg-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1015.20~20.04.2
  19. Upgrade

    Upgrade ubuntu/linux-iot to a version that resolves this vulnerability.

    Fixed in 5.4.0-1032.33
  20. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1108.115
  21. Upgrade

    Upgrade ubuntu/linux-lowlatency-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-48.54~20.04.1
  22. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1119.128
  23. Upgrade

    Upgrade ubuntu/linux-oracle-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.22~20.04.1
  24. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1104.116
  25. Upgrade

    Upgrade ubuntu/linux-riscv-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1018.21~20.04.1
  26. Upgrade

    Upgrade ubuntu/linux-xilinx-zynqmp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1039.43
  27. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1120.130+fips1
  28. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1126.133+fips1
  29. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1094.104
  30. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1124.133+fips1
  31. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.15.0-47.51
  32. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.15.0-1019.23
  33. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.15.0-1019.24
  34. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.23
  35. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.15.0-1015.18
  36. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.15.0-1002.4
  37. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1013.15
  38. Upgrade

    Upgrade ubuntu/linux-intel-iotg to a version that resolves this vulnerability.

    Fixed in 5.15.0-1015.20
  39. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.21
  40. Upgrade

    Upgrade ubuntu/linux-lowlatency to a version that resolves this vulnerability.

    Fixed in 5.15.0-47.53
  41. Upgrade

    Upgrade ubuntu/linux-nvidia to a version that resolves this vulnerability.

    Fixed in 5.15.0-1007.7
  42. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.22
  43. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.15.0-1014.16
  44. Upgrade

    Upgrade ubuntu/linux-realtime to a version that resolves this vulnerability.

    Fixed in 5.15.0-1020.20
  45. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.18.2-1
  46. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  47. Compensating control

    In the netns pre-exit path, unregister and destroy the netdev hook via kfree_rcu so the NETDEV_UNREGISTER path observes already-unregistered hooks and does not unregister them twice.

Event History

Feb 26, 2025
CVE Published
via MITRE·02:14 AM
Data Sourced
via MITRE·02:14 AM
Description
Data Sourced
via OSV·07:01 AM
DescriptionSeverityAffected Software
Event
via OSV·07:01 AM
Data Sourced
via NVD·07:01 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49558?

The severity of CVE-2022-49558 is categorized as medium due to potential impact on network namespace management.

2

How do I fix CVE-2022-49558?

To fix CVE-2022-49558, update the Linux Kernel to a version that is not vulnerable, such as 5.18.3 or later.

3

What is the impact of CVE-2022-49558?

The impact of CVE-2022-49558 involves improper hook management that may lead to denial of service in a network namespace.

4

Which versions of the Linux Kernel are affected by CVE-2022-49558?

CVE-2022-49558 affects Linux Kernel versions from 5.18.0-rc7 up to and including 5.18.2, along with specified earlier versions.

5

Is CVE-2022-49558 exploitable remotely?

CVE-2022-49558 is considered not easily exploitable remotely but could pose risks in environments with specific network setups.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203