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

7 affected components
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

Event History

Feb 26, 2025
CVE Published
via MITRE·02:14 AM
Data Sourced
via MITRE·02:14 AM
Description
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