CVE-2022-50780
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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_unsharecopy_net_nssetup_net (Red Hat Bugzilla).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management