CVE-2022-49558

Source
https://cve.org/CVERecord?id=CVE-2022-49558
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49558.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49558
Downstream
Published
2025-02-26T02:14:04.575Z
Modified
2026-04-02T08:27:42.327799Z
Summary
netfilter: nf_tables: double hook unregistration in netns path
Details

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

netfilter: nf_tables: 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 NETDEV_UNREGISTER path see unregistered hooks.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49558.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b110391d1e806167254d3c7ae5d637191d913175
Fixed
b09e6ccf0d12f9356e8e3508d3e3dce126298538
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0a0e5d47670b753d3dbf88f3c77a97a30864d9bd
Fixed
3fac8ce48fa9fd61ee9056d3ed48b2edefca8b82
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
767d1216bff82507c945e92fe719dff2083bb2f4
Fixed
9c413a8c8bb49cc16796371805ecb260e885bb2b
Fixed
a3940dcf552f2393d1e8f263b386593f98abe829
Fixed
86c0154f4c3a56c5db8b9dd09e3ce885382c2c19
Fixed
f9a43007d3f7ba76d5e7f9421094f00f2ef202f8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49558.json"