CVE-2022-49558: netfilter: nf_tables: double hook unregistration in netns path
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
Remediation
Event History
Frequently Asked Questions
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.
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.
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.
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.
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.