Linux Netfilter nftables Use-After-Free Enables Local Root Escalation
Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Jul 23, 2026

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 commit143a6252e1b8ab424b4b293512a97cca7295c182, and a KASAN-observed5.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_pathto 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.


