CVE-2022-49558

MEDIUM

Linux Kernel - Use-After-Free in Netfilter nf_tables Hook Unregistration

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0026
EPSS Percentile 18.2%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

Status published
Products (22)
linux/Kernel < 5.4.262linux
linux/Kernel 5.11.0 - 5.17.13linux
linux/Kernel 5.16.0 - 5.18.2linux
linux/Kernel 5.5.0 - 5.10.198linux
Linux/Linux < 5.11
Linux/Linux 0a0e5d47670b753d3dbf88f3c77a97a30864d9bd - 3fac8ce48fa9fd61ee9056d3ed48b2edefca8b82
Linux/Linux 5.10.17 - 5.10.198
Linux/Linux 5.10.198 - 5.10.*
Linux/Linux 5.11
Linux/Linux 5.15.45 - 5.15.*
... and 12 more
Published Feb 26, 2025
Tracked Since Feb 18, 2026