Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityprivilege-escalation-methodprivilege-escalation-technique

Linux Netfilter nftables Use-After-Free Enables Local Root Escalation

Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Jul 23, 2026

Linux Netfilter nftables Use-After-Free Enables Local Root Escalation

A use-after-free write flaw in the Linux kernel's Netfilter nf_tables/nftables subsystem, tracked as CVE-2022-32250, can allow a local attacker to escalate privileges to root. The defect is triggered by supplying a non-stateful lookup or dynset expression as a subexpression in an NFT_MSG_NEWSET operation: the expression is bound to a set, then freed without removal from the set's binding list, leaving a stale reference that can be used for memory corruption.

Researchers demonstrated exploitation on Ubuntu 22.04 running kernel 5.15.0-27-generic, using user_key_payload and POSIX message queues to leak heap and KASLR addresses before overwriting modprobe_path for root execution. Exploitation requires the ability to create user and network namespaces. The upstream fix, committed as 520778042ccca019f3ffa136dd0ca565c486cedd, moves NFT_EXPR_STATEFUL validation into nft_expr_init so unsupported expressions are rejected before allocation and binding can create the dangling reference.

Why it matters

Impact assessment

CVE-2022-32250 permits a local unprivileged user to obtain root privileges on vulnerable Linux systems with nftables support when they can create both user and network namespaces. Successful exploitation compromises host integrity and can enable full data access, persistence, security-control bypass, and lateral movement from an initially low-privilege foothold.

  • Affected population: Linux hosts using the Netfilter nf_tables/nftables subsystem, including Ubuntu 22.04 systems running vulnerable kernel builds.
  • Confirmed vulnerable/exploitable configurations include Ubuntu 22.04 with 5.15.0-27-generic, Linux mainline commit 143a6252e1b8ab424b4b293512a97cca7295c182, and a KASAN-observed 5.18.0+ build.
  • Exposure is configuration-dependent rather than remotely reachable: the attacker needs local code execution and permission to create user and network namespaces. Containerized, multi-user, CI/CD, shared-hosting, and developer environments merit priority review where untrusted users or workloads can obtain these capabilities.
  • Public exploit methodology and exploit code were reported. The supplied references do not document confirmed in-the-wild exploitation.

Structured facts

  • Vulnerability: local privilege escalation to root through Linux Netfilter nftables.
  • Affected component: nf_tables / nftables in the Linux kernel.
  • Required privileges/capabilities: local execution; user namespace creation; network namespace creation.
  • Demonstrated post-exploitation outcome: overwrite modprobe_path to cause execution of an attacker-controlled helper as root.
  • Potential business effects: host takeover, theft or modification of data accessible to root, workload disruption, and compromise of container-host boundaries where namespace permissions are permissive.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events
  1. Reported Aug 23, 20224y ago

    Full local-root exploit technique and code are published

    A technical write-up demonstrated exploitation on Ubuntu 22.04 with kernel 5.15.0-27-generic, using heap and KASLR leaks followed by a controlled write to overwrite modprobe_path. The write-up stated that full exploit code was published in a GitHub repository for educational and research purposes.

    Linux Kernel Exploit (CVE-2022-32250) with mqueue - Theori BLOG
  2. Reported Jan 4, 201413y ago

    Linux netdev tree commits fix for stale Netfilter bindings

    The Linux kernel netdev tree fixed the issue in commit 520778042ccca019f3ffa136dd0ca565c486cedd. The fix prevents unsupported non-stateful expressions from being allocated and bound as set subexpressions.

    oss-security - Linux Kernel use-after-free write in netfilter
  3. Reported Jan 4, 201413y ago

    EDG reports Netfilter use-after-free vulnerability

    EDG reported CVE-2022-32250, a use-after-free write flaw in the Linux Netfilter nf_tables subsystem that can enable local privilege escalation to root. The flaw leaves a stale set binding when non-stateful lookup or dynset expressions are rejected during NFT_MSG_NEWSET processing.

    oss-security - Linux Kernel use-after-free write in netfilter
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
Canonical
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.