CVE DatabaseCVE-2024-1086
한국어 권고문 →
CVE-2024-10867.8/HIGHCISA KEVCWE-416CWE-416

Linux Kernel netfilter (nf_tables) Use-After-Free Local Privilege Escalation Vulnerability Advisory (CVE-2024-1086)

⚡ Jump to Patch
Affected Vendors
linux
Affected Components
linux_kernel
Published Date
2024-01-31
CVSS v3.1
7.8
HIGH
EPSS (30d)
28.1%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Linux kernel versions from v5.14 up to v6.6.14 with the nf_tables module enabled

Impact

Local unprivileged users can trigger kernel memory corruption, leading to arbitrary code execution and full root privilege escalation

Mitigation

Apply the official kernel patch or restrict unprivileged user namespace creation as an immediate workaround

Affected Products & Version Scope

Linux kernel versions v5.14 through v6.6.14 with nf_tables and unprivileged user namespaces enabled

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Upgrade your Linux kernel to a stable version that includes the official fix commit f342de4e2f33e0e39165d8639387aa6c19dff660.

bash
# For Ubuntu / Debian systems
sudo apt-get update && sudo apt-get install --only-upgrade -y linux-image-generic
sudo reboot

# For RHEL / Rocky Linux systems
sudo dnf update -y kernel
sudo reboot

2. Temporary Workaround & Hardening Configuration

If immediate patching and rebooting are not feasible, mitigate the risk by disabling unprivileged user namespaces to block the primary exploitation vector.

bash
# Temporarily disable unprivileged user namespaces
sudo sysctl -w kernel.unprivileged_userns_clone=0

# Persist the configuration across reboots
echo 'kernel.unprivileged_userns_clone=0' | sudo tee -a /etc/sysctl.d/99-disable-userns.conf
sudo sysctl --system

3. Log Audit & IoC Verification Commands

Verify the current running kernel version and check if the vulnerable nf_tables module is loaded.

bash
# Check the active kernel version
uname -r

# Check if nf_tables is loaded and verify user namespace configuration
lsmod | grep nf_tables
sysctl kernel.unprivileged_userns_clone
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Immediately apply the latest kernel security updates or disable unprivileged user namespaces to mitigate the risk of local privilege escalation.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2024-1086) is a Use-After-Free (UAF) flaw in the nf_tables component of the Linux kernel's netfilter subsystem. The root cause lies in the nft_verdict_init() function, which incorrectly allows positive values as drop errors within the hook verdict. Consequently, the nf_hook_slow() function misinterprets an NF_DROP verdict accompanied by a specific drop error as if it were NF_ACCEPT. This logical discrepancy leads to a double-free condition on the same packet buffer (sk_buff), resulting in a Use-After-Free state.

2. Exploitation Mechanics & Attack Scenario

An attacker with local unprivileged access leverages unprivileged user namespaces to gain administrative capabilities over nf_tables. By sending crafted Netlink messages, the attacker triggers nft_verdict_init() with a malicious drop error value. When nf_hook_slow() processes this verdict, the underlying sk_buff is freed twice. The attacker then performs heap grooming (Heap Feng Shui) to reclaim the freed memory block with controlled payload data, overwriting kernel function pointers to redirect execution flow and achieve local privilege escalation (LPE) to root.

3. Infrastructure & Business Impact

This vulnerability is highly critical and is actively exploited in the wild, as evidenced by its inclusion in the CISA KEV catalog and a high EPSS score. In multi-tenant environments, container hosts, and cloud infrastructures, this flaw allows malicious local actors or compromised containerized applications to escape isolation boundaries and compromise the host operating system, threatening the confidentiality, integrity, and availability of the entire infrastructure.

Official Vendor Advisories & References

NVD Original English Description

A use-after-free vulnerability in the Linux kernel's netfilter: nf_tables component can be exploited to achieve local privilege escalation. The nft_verdict_init() function allows positive values as drop error within the hook verdict, and hence the nf_hook_slow() function can cause a double free vulnerability when NF_DROP is issued with a drop error which resembles NF_ACCEPT. We recommend upgrading past commit f342de4e2f33e0e39165d8639387aa6c19dff660.

Frequently Asked SecOps Questions (CVE-2024-1086)

FAQ

Q1. How critical is CVE-2024-1086 and is it actively exploited in the wild?

CVE-2024-1086 is rated CVSS 7.8 (HIGH) with a 30-day EPSS exploitation probability of 28.1%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2024-1086?

Primary impacted vendors include linux across linux_kernel. Scope summary: Linux kernel versions v5.14 through v6.6.14 with nf_tables and unprivileged user namespaces enabled

Q3. What temporary mitigations or workarounds exist for CVE-2024-1086 before patching?

[Mitigation] Apply the official kernel patch or restrict unprivileged user namespace creation as an immediate workaround Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2024-1086

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (linux)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2024-1086 Linux Kernel netfilter (nf_tables) Use-After-Free Local Privilege Escalation Vulnerability Advisory (CVE-2024-1086) (CVSS 7.8) - Patch & Workaround | CVE Pulse