Skip to main content
Mallory
← Back to News
privilege-escalation-methodwidely-deployed-product-advisoryendpoint-software-vulnerability

Linux Netfilter Use-After-Free Enables Local Privilege Escalation

Attack Tradecraft · 2 sources · Updated 3mo ago · First seen Jul 8, 2024

Linux Netfilter Use-After-Free Enables Local Privilege Escalation

CVE-2024-27397 is a use-after-free flaw in the Linux kernel's netfilter/nf_tables subsystem. During control-plane transactions, a set element with a timeout could expire before the transaction completed because affected set backends did not use a transaction-start timestamp. A local low-privileged attacker could potentially crash an affected host or elevate privileges; the vulnerability affects code introduced in Linux kernel 4.1.

The issue is fixed in Linux kernel 6.7.5, 6.8, and later stable releases. Red Hat issued corrected kernel and kernel-rt packages for multiple RHEL 8 and 9 streams and rates the flaw Moderate, while CVSS assessments range from 7.0 to 7.8 depending on assumed attack complexity. Organizations should deploy current vendor kernel updates rather than cherry-picking patches; non-containerized RHEL 8 systems may temporarily disable user namespaces, but this mitigation must not be used on OpenShift because its containers require user namespaces.

Why it matters

Impact assessment

CVE-2024-27397 permits a local, low-privileged user to trigger a Linux kernel use-after-free condition, causing host denial of service or potential root-level privilege escalation. Exposure is broad across Linux systems with affected nf_tables code, particularly multi-user systems and environments where users or workloads can create user or network namespaces; no exploitation in the wild is reported in the supplied references.

  • Affected population: Linux kernel deployments containing the vulnerable code, introduced in kernel 4.1, including supported RHEL 8 and RHEL 9 package streams before their vendor-specific fixes.
  • Business impact: successful exploitation can compromise host confidentiality, integrity, and availability through local privilege escalation, or disrupt workloads through a kernel crash.
  • Exposure scope: exploitation is local rather than remotely reachable by itself, but risk increases on shared servers, CI/CD runners, development systems, container hosts, and systems that permit untrusted code execution.
  • Severity: Red Hat rates the issue Moderate and assigns CVSS 7.0; other scoring cited by the story reaches CVSS 7.8. The difference reflects varying assessments of attack complexity.
  • Known exploitation: none reported in the provided material.

Affected Red Hat advisories

  • RHEL 8 kernel: RHSA-2024:4211
  • RHEL 8 kernel-rt: RHSA-2024:4352
  • RHEL 9 kernel: RHSA-2024:4583
  • RHEL 9.2 EUS kernel: RHSA-2024:4108
  • RHEL 8.6 AM-CUS/TUS/SAP kernel: RHSA-2024:4447
  • RHEL 8.8 EUS kernel: RHSA-2024:4740
  • RHEL 9.0 SAP kernel and kernel-rt: RHSA-2024:5257 and RHSA-2024:5256
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.

9 events · Jun 26, 2024 – Jul 8, 2024
  1. Reported Jul 8, 20242y ago

    Red Hat fixes RHEL 9.0 SAP kernel and kernel-rt

    Red Hat released RHSA-2024:5257 and RHSA-2024:5256 to fix CVE-2024-27397 in RHEL 9.0 SAP Update Services kernel and kernel-rt packages, respectively.

    CVE-2024-27397 - Red Hat Customer Portal
  2. Reported Jul 8, 20242y ago

    Red Hat fixes RHEL 8.8 EUS kernel

    Red Hat released RHSA-2024:4740, fixing CVE-2024-27397 in the Red Hat Enterprise Linux 8.8 Extended Update Support kernel.

    CVE-2024-27397 - Red Hat Customer Portal
  3. Reported Jul 8, 20242y ago

    Red Hat fixes RHEL 9 kernel

    Red Hat released RHSA-2024:4583, providing a CVE-2024-27397 fix for the Red Hat Enterprise Linux 9 kernel.

    CVE-2024-27397 - Red Hat Customer Portal
  4. Reported Jul 8, 20242y ago

    Red Hat fixes RHEL 8.6 specialized support streams

    Red Hat released RHSA-2024:4447 to fix CVE-2024-27397 for RHEL 8.6 Advanced Mission Critical Update Support, Telecommunications Update Service, and SAP Update Services kernels.

    CVE-2024-27397 - Red Hat Customer Portal
  5. Jul 8, 20242y ago

    Red Hat fixes RHEL 8 kernel-rt

    Red Hat released RHSA-2024:4352, fixing CVE-2024-27397 in the Red Hat Enterprise Linux 8 kernel-rt package.

    CVE-2024-27397 - Red Hat Customer Portal
  6. Jul 2, 20242y ago

    Red Hat fixes RHEL 8 kernel

    Red Hat released RHSA-2024:4211, providing a fix for CVE-2024-27397 in the Red Hat Enterprise Linux 8 kernel.

    CVE-2024-27397 - Red Hat Customer Portal
  7. Jun 26, 20242y ago

    Red Hat fixes RHEL 9.2 EUS kernel

    Red Hat released RHSA-2024:4108, fixing CVE-2024-27397 in the Red Hat Enterprise Linux 9.2 Extended Update Support kernel.

    CVE-2024-27397 - Red Hat Customer Portal
  8. Reported May 8, 20243y ago

    Linux kernel fixes CVE-2024-27397 in versions 6.7.5 and 6.8

    The Linux kernel CVE team documented fixes for the nf_tables transaction-timeout flaw in kernel 6.7.5 and 6.8. The fix records a transaction-start timestamp for relevant set backend operations.

    CVE-2024-27397: netfilter: nf_tables: use timestamp to check for set element timeout
  9. Reported May 8, 20243y ago

    Netfilter timeout flaw introduced in Linux kernel 4.1

    The nf_tables set-element timeout issue underlying CVE-2024-27397 was introduced in Linux kernel 4.1 by commit c3e1b005ed1c.

    CVE-2024-27397: netfilter: nf_tables: use timestamp to check for set element timeout
Linked entities

Related entities

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

Open in app →
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.