
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-50780 is a use-after-free (UAF) vulnerability in the Linux kernel's netfilter queue subsystem (nfqnl), specifically in the nfqnl_nf_hook_drop() function during network namespace initialization. When ops_init() fails after allocating and assigning data to net->gen, the data is freed but the pointer in net->gen remains, leading to invalid memory access when nfqnl_nf_hook_drop() is subsequently called during cleanup. The vulnerability affects the Linux kernel and was publicly disclosed on December 24, 2025. It carries a CVSS v3.1 base score of 5.5 (Medium), requiring local access with low privileges (Red Hat Advisory, Red Hat Bugzilla).
The root cause is a use-after-free condition (CWE-416) in the Linux kernel's network namespace setup path. During setup_net(), ops_init() allocates memory via kzalloc() and assigns it to a pointer in net->gen via net_assign_generic(). If the subsequent ops->init() call fails, the allocated data is freed via kfree(data), but the pointer in net->gen is not cleared. When ops_exit_list() later calls nfqnl_nf_hook_drop(), it dereferences the now-invalid pointer (*q = nfnl_queue_pernet(net)), triggering a KASAN-detected UAF at the freed memory address. The attack vector is local, requiring the ability to create network namespaces (e.g., via unshare(CLONE_NEWNET)), as evidenced by the call trace showing ksys_unshare → copy_net_ns → setup_net (Red Hat Bugzilla).
Successful exploitation can cause a kernel crash, resulting in a denial-of-service condition on the affected system. The CVSS assessment indicates a high availability impact with no confidentiality or integrity impact; however, use-after-free vulnerabilities in kernel memory management can theoretically be leveraged for privilege escalation or arbitrary code execution in more sophisticated attack scenarios. The vulnerability is scoped to the local system and does not directly enable lateral movement, but a kernel crash on a shared or multi-tenant system could affect all users (Red Hat Advisory, Red Hat Bugzilla).
The fix is available upstream in the Linux kernel via patches committed to the stable tree (commit hashes: 4a4df5e78712de39d6f90d6a64b5eb48dca03bd5, 5a2ea549be94924364f6911227d99be86e8cf34a, 97ad240fd9aa9214497d14af2b91608e20856cac, a1e18acb0246bfb001b08b8b1b830b5ec92a0f13). Administrators should apply the latest Linux kernel security updates from their distribution vendor (e.g., Red Hat). As interim mitigations, restrict local user access to critical systems, limit the ability to create new network namespaces (e.g., via user.max_user_namespaces sysctl or security policies), and consider enforcing mandatory access control frameworks such as SELinux or AppArmor (Red Hat Advisory, Red Hat Bugzilla).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."