
Vulnerabilidad nf_tables del kernel que permite el acceso de root
nf_tables UAF)This repository contains an automated audit script in Bash designed to deeply and accurately evaluate the CVE-2026-23111 vulnerability in Linux environments.
CVE-2026-23111 is a Use-After-Free (UAF) vulnerability discovered in the nf_tables subsystem of the Linux kernel (generally affecting development and stable versions prior to the 6.13 branch).
The flaw lies in incorrect memory management within the activation logic of captured elements (nft_map_catchall_activate). A local attacker with few privileges can exploit this flaw to achieve Local Privilege Escalation (LPE) to root.
For an exploit to succeed on a system, three factors usually must coexist simultaneously:
CAP_NET_ADMIN) to directly interact with nf_tables.nf_tables module must be loaded or available for auto-loading by the operating system.This Bash script performs a detailed audit by analyzing four critical layers:
sysctl parameters (unprivileged_userns_clone or max_user_namespaces) to verify if the common exploit's entry vector is blocked.nf_tables is loaded or if there is a blacklist rule in the modprobe.d configuration files.CONFIG_X): Searches and reads the operating kernel's compilation flags (via /proc/config.gz or /boot/config-*) to verify the presence of CONFIG_USER_NS and CONFIG_NF_TABLES.