Critical Linux Kernel Flaw in Nftables Allows Root Access; Affects Major Distributions

Critical Linux Kernel Vulnerability Allows Attackers to Gain Root Access

A significant security flaw has been identified in the Linux kernel’s nftables subsystem, potentially allowing unprivileged local users to escalate their privileges to root. This vulnerability, designated as CVE-2026-23111, affects widely used distributions such as Debian Bookworm, Debian Trixie, Ubuntu 22.04 LTS, and Ubuntu 24.04 LTS.

Technical Details

The vulnerability originates from a use-after-free error in the `nft_map_catchall_activate()` function within the nftables subsystem—a framework integral to Linux’s packet filtering capabilities. A misplaced logical operator (`!`) causes the function to improperly handle inactive catchall elements during transaction aborts. This mismanagement results in the chain’s reference counter being decremented incorrectly, leaving a dangling pointer that can be exploited to achieve privilege escalation.

Exploit Mechanism

Security researcher Oliver Sieber of Exodus Intelligence has developed a proof-of-concept exploit demonstrating the vulnerability’s reliability. The exploit manipulates nftables’ generational cursor mechanism through a series of transaction batches:

1. Batch 1: Deletes the pipapo set and induces an error to trigger an abort, leading to an incorrect decrement of the chain’s reference counter.

2. Batch 2: Executes a benign transaction to toggle the generation cursor.

3. Batch 3: Performs a clean deletion of the pipapo set, reducing the chain’s reference counter to zero.

4. Batch 4: Deletes the chain while a live rule in the base chain still references it, triggering the use-after-free condition.

The exploit further bypasses Kernel Address Space Layout Randomization (KASLR) by reclaiming freed memory slabs and leaking kernel function pointers. Control flow hijacking is achieved by overwriting the deleted chain’s `blob_gen_0` pointer with a crafted structure, ultimately calling `commit_creds(&init_cred)` to obtain root credentials and escape namespace isolation.

Impact and Mitigation

The exploit has demonstrated over 99% reliability on idle systems and approximately 80% under heavy heap pressure, indicating a high likelihood of successful exploitation in real-world scenarios. Given the severity of this vulnerability, it is imperative for users and administrators to apply the necessary patches promptly. The issue was addressed upstream on February 5, 2026, and patches have been made available for affected distributions.

Recommendations

– Immediate Action: Update your Linux kernel to the latest version provided by your distribution to mitigate this vulnerability.

– Monitor Systems: Regularly check for unusual system behavior that may indicate exploitation attempts.

– Review Security Policies: Ensure that unprivileged users do not have unnecessary access to network namespaces or capabilities that could be exploited.

Staying vigilant and proactive in applying security updates is crucial to maintaining the integrity and security of Linux systems.