Linux Netfilter nftables Use-After-Free Enables Local Privilege Escalation
Attack Tradecraft · 3 sources · Updated 3mo ago · First seen Feb 20, 2024

A use-after-free flaw in the Linux kernel's Netfilter nftables nft_pipapo_walk function, tracked as CVE-2023-6817, can allow a local attacker with CAP_NET_ADMIN to crash a host, disclose information, or elevate privileges. The defect allowed inactive PIPAPO set elements to be processed and deactivated twice during a set walk, leading to a kernel crash; it carries a CVSS v3.1 score of 7.8.
Linux kernel commit 317eb9685095678f2c9f5a8189de698c5354316a fixes the issue by verifying that an element is active before invoking the iterator callback. Red Hat issued fixes for affected RHEL 8 kernel and kernel-rt packages; systems with unprivileged user namespaces enabled may let unprivileged users obtain the required capability. OpenShift Container Platform inherits the affected code through RHCOS, but Red Hat rates impact as Low because its namespace model prevents containers from acquiring the capabilities needed to exploit the flaw.
Why it matters
Impact assessment
CVE-2023-6817 is a local Linux kernel privilege-escalation and denial-of-service vulnerability affecting systems that use Netfilter nftables PIPAPO sets. Its practical risk is highest on non-containerized RHEL 8 systems where unprivileged user namespaces are enabled, because a local unprivileged user can obtain the required CAP_NET_ADMIN capability through namespaces.
- Affected populations: RHEL 8 systems using affected
kernelorkernel-rtpackages; other Linux systems whose kernels include the vulnerable PIPAPO implementation; OpenShift control-plane and master nodes through RHCOS. - Impact: successful exploitation can crash the host, expose kernel information, or elevate local privileges. A host crash can cause service interruption; privilege escalation compromises host integrity and can enable broader data access or lateral movement.
- Exposure scope: exploitation requires local access plus the ability to create user and network namespaces. It is not a remote unauthenticated vulnerability.
- OpenShift: Red Hat rates impact Low. Its namespace model prevents running containers from acquiring the required capabilities by switching namespaces; an RHCOS local user is already root.
- Exploitation in the wild: no in-the-wild exploitation is reported in the supplied references.
Structured facts
- Affected component: Linux kernel Netfilter nftables PIPAPO set implementation.
- Affected function:
nft_pipapo_walk()innet/netfilter/nft_set_pipapo.c. - Affected RHEL products: RHEL 8
kernelandkernel-rtpackages, including specified AUS, TUS, and mission-critical update channels. - Related platform: OpenShift Container Platform nodes using RHCOS.
- Reporter: Xingyuan Mo, IceSword Lab.


