LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50780: net: fix UAF issue in nfqnl_nf_hook_drop() when ops_init() failed

In the Linux kernel, the following vulnerability has been resolved: net: fix UAF issue in nfqnl_nf_hook_drop() when ops_init() failed When the ops_init() interface is invoked to initialize the net, but ops->init() fails, data is released. However, the ptr pointer in net->gen is invalid. In this case, when nfqnl_nf_hook_drop() is invoked to release the net, invalid address access occurs. The process is as follows: setup_net() ops_init() data = kzalloc(...) ---> alloc "data" net_assign_generic() ---> assign "date" to ptr in net->gen ... ops->init() ---> failed ... kfree(data); ---> ptr in net->gen is invalid ... ops_exit_list() ... nfqnl_nf_hook_drop() *q = nfnl_queue_pernet(net) ---> q is invalid The following is the Call Trace information: BUG: KASAN: use-after-free in nfqnl_nf_hook_drop+0x264/0x280 Read of size 8 at addr ffff88810396b240 by task ip/15855 Call Trace: <TASK> dump_stack_lvl+0x8e/0xd1 print_report+0x155/0x454 kasan_report+0xba/0x1f0 nfqnl_nf_hook_drop+0x264/0x280 nf_queue_nf_hook_drop+0x8b/0x1b0 __nf_unregister_net_hook+0x1ae/0x5a0 nf_unregister_net_hooks+0xde/0x130 ops_exit_list+0xb0/0x170 setup_net+0x7ac/0xbd0 copy_net_ns+0x2e6/0x6b0 create_new_namespaces+0x382/0xa50 unshare_nsproxy_namespaces+0xa6/0x1c0 ksys_unshare+0x3a4/0x7e0 __x64_sys_unshare+0x2d/0x40 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 </TASK> Allocated by task 15855: kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 __kasan_kmalloc+0xa1/0xb0 __kmalloc+0x49/0xb0 ops_init+0xe7/0x410 setup_net+0x5aa/0xbd0 copy_net_ns+0x2e6/0x6b0 create_new_namespaces+0x382/0xa50 unshare_nsproxy_namespaces+0xa6/0x1c0 ksys_unshare+0x3a4/0x7e0 __x64_sys_unshare+0x2d/0x40 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 Freed by task 15855: kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 kasan_save_free_info+0x2a/0x40 ____kasan_slab_free+0x155/0x1b0 slab_free_freelist_hook+0x11b/0x220 __kmem_cache_free+0xa4/0x360 ops_init+0xb9/0x410 setup_net+0x5aa/0xbd0 copy_net_ns+0x2e6/0x6b0 create_new_namespaces+0x382/0xa50 unshare_nsproxy_namespaces+0xa6/0x1c0 ksys_unshare+0x3a4/0x7e0 __x64_sys_unshare+0x2d/0x40 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x46/0xb0

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2022-50780 is a Linux kernel use-after-free in netfilter queue cleanup during network namespace setup failure. It can cause invalid kernel memory access. Public sources do not provide CVSS, confirmed impact beyond the crash trace, or active exploitation evidence.

Executive priority

Treat as a medium-priority kernel maintenance item unless your environment allows untrusted local users or workloads to create network namespaces. Prioritize container hosts and multi-tenant Linux systems.

Technical view

The flaw occurs when ops_init() assigns per-network generic data, ops->init() fails, the data is freed, but net->gen still holds an invalid pointer. Later nfqnl_nf_hook_drop() accesses it during cleanup, producing a KASAN use-after-free trace through unshare/network namespace creation.

Likely exposure

Systems running affected Linux kernel versions listed in the CVE record may be exposed, especially where network namespaces and netfilter queue functionality are present. Distribution kernels may have backported fixes, so version strings alone are insufficient.

Exploitation context

The public record shows a local kernel path involving unshare and network namespace creation. It does not state remote exploitability, privilege escalation, reliable exploitation, or in-the-wild activity. CISA KEV status is false in the provided bundle.

Researcher notes

Evidence is limited to the CVE description and upstream stable commit references. No CVSS, CWE, exploit maturity, or complete distro matrix is provided. Avoid assuming impact beyond kernel invalid memory access without additional vendor analysis.

Mitigation direction

  • Apply Linux kernel or distribution updates containing the referenced stable fixes.
  • Check your distribution advisory for backported fixes and exact affected package versions.
  • If unpatched, review exposure of untrusted network namespace creation per vendor guidance.

Validation and detection

  • Inventory Linux kernel versions across servers, containers hosts, and appliances.
  • Map installed kernels to vendor advisories or the referenced upstream stable commits.
  • Confirm patched kernels are booted, not merely installed.
  • Review security monitoring for kernel crashes matching nfqnl_nf_hook_drop use-after-free.
Prepared
Confidence
medium
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2022-50780 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
7Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxf875bae065334907796da12523f9df85c89f5712, f875bae065334907796da12523f9df85c89f5712, f875bae065334907796da12523f9df85c89f5712, f875bae065334907796da12523f9df85c89f5712, f875bae065334907796da12523f9df85c89f5712, f875bae065334907796da12523f9df85c89f5712unaffected
LinuxLinux2.6.33, 0, 4.19.264, 5.4.223, 5.10.153, 5.15.77, 6.0.7, 6.1affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.