Linux Netfilter Use-After-Free Enables Local Privilege Escalation
Attack Tradecraft · 2 sources · Updated 3mo ago · First seen Jul 8, 2024

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


