Skip to main content
Mallory
← Back to News
privilege-escalation-techniqueindustrial-control-system-vulnerability

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

Attack Tradecraft · 3 sources · Updated 3mo ago · First seen Feb 20, 2024

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

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 kernel or kernel-rt packages; 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() in net/netfilter/nft_set_pipapo.c.
  • Affected RHEL products: RHEL 8 kernel and kernel-rt packages, including specified AUS, TUS, and mission-critical update channels.
  • Related platform: OpenShift Container Platform nodes using RHCOS.
  • Reporter: Xingyuan Mo, IceSword Lab.
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

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

5 events · Dec 1, 2023 – Feb 20, 2024
  1. Reported Feb 20, 20243y ago

    Red Hat patches RHEL 8.4 extended-support packages

    Red Hat released RHSA-2024:1367 for RHEL 8.4 Advanced Mission Critical Update Support kernel packages and RHSA-2024:1382 for RHEL 8.4 Telecommunications Update Service kernel-rt packages.

    CVE-2023-6817 - Red Hat Customer Portal
  2. Reported Feb 20, 20243y ago

    Red Hat patches RHEL 8.2 extended-support packages

    Red Hat fixed affected RHEL 8.2 Advanced Update Support kernel packages in RHSA-2024:1268 and Telecommunications Update Service kernel-rt packages in RHSA-2024:1269.

    CVE-2023-6817 - Red Hat Customer Portal
  3. Feb 20, 20243y ago

    Red Hat releases RHEL 8 fixes for CVE-2023-6817

    Red Hat issued RHSA-2024:0897 for affected RHEL 8 kernel packages and RHSA-2024:0881 for RHEL 8 kernel-rt packages, fixing CVE-2023-6817.

    CVE-2023-6817 - Red Hat Customer Portal
  4. Reported Dec 1, 20233y ago

    Upstream Linux commits nft_pipapo_walk crash fix

    Pablo Neira Ayuso committed upstream Linux commit 317eb9685095678f2c9f5a8189de698c5354316a, which checks whether an element is active before invoking the nft_pipapo_walk iterator callback.

    netfilter: nft_set_pipapo: skip inactive elements during set walk - kernel/git/torvalds/linux.git - Linux kernel source tree
  5. Dec 1, 20233y ago

    Linux Netfilter fix authored for nft_pipapo_walk crash

    Florian Westphal authored a patch to skip inactive nftables pipapo set elements during set walks, preventing their double deactivation and resulting kernel crash. Xingyuan Mo reported the issue.

    netfilter: nft_set_pipapo: skip inactive elements during set walk - kernel/git/torvalds/linux.git - Linux kernel source tree
Linked entities

Related entities

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

Open in app →

Affected products

1 linked
Red Hat Enterprise Linux
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
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.