Skip to content
← RegistryDossier · 7 steps · 6 edges

nf_tables UAF → kernel R/W → root

CVE-2024-1086-class nf_tables UAF reachable from a user namespace. Win the race with userfaultfd to land an attacker object in the freed slot, build a kernel R/W primitive, overwrite the current task's cred struct.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: foothold as a regular user on Linux. Kernel < patch level for the nf_tables UAF. User namespaces enabled (default on most distros).

§ Steps

  1. 01
    Spawn root shellInitial Access
    T1078Valid Accounts
  2. 02
    Low-priv user shellInitial Access
    T1078Valid Accounts
  3. 03
    Overwrite current cred structExecution
    T1059Command and Scripting Interpreter
  4. 04
    Create user + net namespacePrivilege Escalation
    L-CAP-ABUSELinux Capability Abuse
  5. 05
    Trigger nf_tables UAFPrivilege Escalation
    LK-NETFILTER-UAFnetfilter / nf_tables UAF
  6. 06
    Build kernel R/W primitivePrivilege Escalation
    LK-DIRTY-PAGETABLEDirty Pagetable
  7. 07
    Win race via userfaultfd suspendPrivilege Escalation
    LK-USERFAULTFDuserfaultfd Race

§ References

§ Frequently asked

What is the "nf_tables UAF → kernel R/W → root" attack path?
CVE-2024-1086-class nf_tables UAF reachable from a user namespace. Win the race with userfaultfd to land an attacker object in the freed slot, build a kernel R/W primitive, overwrite the current task's cred struct. It chains 7 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Spawn root shell (T1078) — a initial access primitive. Assumed environment: foothold as a regular user on Linux.
What is the final impact of this kill-chain?
The final step lands on Win race via userfaultfd suspend (LK-USERFAULTFD), which falls under Privilege Escalation. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers