MEDIUM 5.5

CVE-2026-53134: Linux Kernel Netfilter Memory Leak in FIB Lookups

A flaw in the Linux kernel's netfilter subsystem can leak uninitialized kernel memory to unprivileged local users. When the netfilter FIB module processes certain lookup failures or network interface checks, it fails to properly clear all memory locations it claims to initialize, leaving stale stack data accessible to userspace code. An attacker with local access could read sensitive kernel information through carefully crafted netfilter rules.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses (CWE)
CWE-401
Affected products
8 configuration(s)
Published / Modified
2026-06-25 / 2026-07-07

NVD description (verbatim)

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_fib: fix stale stack leak via the OIFNAME register For NFT_FIB_RESULT_OIFNAME the destination register is declared with len = IFNAMSIZ (four 32-bit registers), but on the lookup-fail, RTN_LOCAL and oif-mismatch paths nft_fib{4,6}_eval() only writes one register via "*dest = 0". The remaining three registers are left as whatever was on the stack in nft_do_chain()'s struct nft_regs, and a downstream expression that loads the register span can leak that uninitialised kernel stack to userspace. The NFTA_FIB_F_PRESENT existence check has the same shape: it is only meaningful for NFT_FIB_RESULT_OIF, yet it was accepted for any result type while the eval stores a single byte via nft_reg_store8(), leaving the rest of the declared span stale. Fix both: - replace the bare "*dest = 0" in the eval with nft_fib_store_result(), which strscpy_pad()s the whole IFNAMSIZ for OIFNAME (and is already used on the other early-return path), and - restrict NFTA_FIB_F_PRESENT to NFT_FIB_RESULT_OIF and declare its destination as a single u8, so the marked span matches the one byte the eval writes.

8 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-53134 affects the nft_fib{4,6}_eval() functions in the Linux kernel's netfilter packet filtering system. The vulnerability occurs in two distinct code paths: 1. **OIFNAME Register Leak**: When NFT_FIB_RESULT_OIFNAME result type is used, the destination register is declared to span IFNAMSIZ (four 32-bit values). However, on lookup failure, RTN_LOCAL, or output interface mismatch conditions, the code only zeros one register via "*dest = 0", leaving three registers containing whatever data was previously on the kernel stack. A downstream expression reading the full register span can leak this uninitialized memory. 2. **NFTA_FIB_F_PRESENT Flag Scope**: The NFTA_FIB_F_PRESENT flag is only semantically valid for NFT_FIB_RESULT_OIF, but the kernel accepts it for any result type. When set, it stores a single byte via nft_reg_store8(), leaving the remainder of the register span uninitialized. The fix replaces bare register zeroing with nft_fib_store_result(), which properly pads the entire IFNAMSIZ span using strscpy_pad(), and restricts the PRESENT flag to its intended result type with a properly sized single-byte destination register.

Business impact

This vulnerability enables local privilege escalation reconnaissance and potential information disclosure attacks. An authenticated local attacker can extract kernel address space layout information, cryptographic key material, or other sensitive data resident in kernel memory at exploitation time. In environments where local user accounts are provisioned (development systems, shared servers, containers with user namespaces), this represents a meaningful confidentiality risk. Kernel ASLR and other mitigations become less effective when attackers can reliably leak kernel pointers.

Affected systems

The Linux kernel is affected across multiple stable and development branches. While the specific affected version ranges are determined by the vendor's advisory, this issue exists in netfilter code that has been present for several kernel releases. Systems running kernels with netfilter FIB module support (nf_tables with fib lookup) are potentially vulnerable. Verify the exact affected versions and your kernel configuration against the official Linux kernel security advisory.

Exploitability

Exploitation requires local system access and the ability to create or modify netfilter rules (typically requiring CAP_NET_ADMIN capability or equivalent). This is not a remote exploit vector. The vulnerability is triggered through crafted nftables rule sets that exercise the affected code paths. No known public exploit code exists at this time, and the issue is not listed on the CISA Known Exploited Vulnerabilities catalog. However, the attack surface is present on any system with unprivileged users who can create netfilter rules.

Remediation

Patch the Linux kernel to a version incorporating the fix for CVE-2026-53134. The remedy involves applying commits that replace bare register initialization with proper nft_fib_store_result() calls and scope restrictions on the NFTA_FIB_F_PRESENT flag. Verify the specific patched kernel versions against your vendor's advisory (e.g., linux.org, your distribution's security page). Interim mitigation: restrict netfilter rule creation and nftables access to trusted administrators only.

Patch guidance

Monitor your Linux vendor's security bulletins for kernel updates incorporating the nft_fib fix. For distributions using stable kernel branches (Red Hat Enterprise Linux, Ubuntu LTS, Debian stable), patches will be released through standard update channels. Apply kernel updates promptly; this typically requires a system reboot. If you maintain custom kernel builds, cherry-pick the upstream commit fixing nft_fib{4,6}_eval() initialization. Verify successful patching by confirming the kernel version matches or exceeds the vendor's advisory version and reviewing the kernel source for the presence of nft_fib_store_result() calls in the affected code paths.

Detection guidance

Monitor system logs and netfilter audit events for unusual nftables rule creation by non-administrative users. Look for rules explicitly using fib result type with OIFNAME or PRESENT flags, which would be rare in legitimate configurations. Kernel sanitization tools (KASAN, KMSAN) will flag uninitialized memory reads in the affected code paths if enabled in production or testing. Inspect /proc/net/nf_tables_set and audit logs to identify suspicious rule patterns. Note that absence of alerts does not indicate absence of exploitation; passive inspection of active rules is necessary.

Why prioritize this

This vulnerability merits prompt but not emergency patching. The CVSS 5.5 MEDIUM score reflects the requirement for local access and the information-disclosure nature rather than code execution. However, it sits at the higher end of the medium range due to the kernel's privileged position. Prioritize systems where local user accounts exist or where container escape scenarios are plausible. Development and testing environments should be patched first to prevent reconnaissance of production systems. Non-patching duration should be measured in weeks, not months.

Risk score, explained

CVSS 3.1 assigns a score of 5.5 (MEDIUM), derived from: Attack Vector Local (no network), Attack Complexity Low (no special conditions), Privileges Required (Low—local account needed), User Interaction None, Scope Unchanged, Confidentiality Impact None formally, Integrity and Availability impact None. The score reflects the localized attack surface and information-disclosure nature. However, the practical impact is heightened in multi-tenant or container environments where local isolation is weaker. Organizations with strong local access controls may assign lower risk; those with many local users should consider internal risk adjustment upward.

Frequently asked questions

Can this vulnerability be exploited remotely?

No. Exploitation requires local system access (local attack vector) and the ability to create netfilter rules, typically requiring CAP_NET_ADMIN. Remote attackers cannot trigger this flaw directly.

What kernel subsystems does this affect?

The vulnerability is confined to the netfilter FIB (Forwarding Information Base) lookup module, specifically the nft_fib{4,6} implementation used by nftables. Systems without netfilter or those not using FIB lookups in their rule sets are unaffected.

Will my system be compromised by patching the kernel?

No. Patching introduces memory initialization properly; it closes a leak rather than introducing new behavior. Reboot is typically required for kernel patches, which constitutes brief downtime but no functional risk.

How do I know if I'm using the affected code path?

If you have nftables rules with 'fib oifname' or 'fib iif' lookups, the vulnerable code is present. Run 'nft list ruleset' to inspect active rules. Absence of explicit FIB rules suggests low immediate risk, but the capability remains unless netfilter is disabled entirely.

This analysis is based on the published CVE record and vendor advisory as of the stated dates. Exploit code is not provided. CVSS scores, affected product lists, and patch versions must be verified against official vendor security bulletins before production deployment. SEC.co does not warrant the completeness or real-time accuracy of this intelligence; use it to inform your security decisions, not replace them. Always consult your vendor's official guidance for remediation steps specific to your environment. Source: NVD (public-domain), retrieved 2026-08-03. Analysis generated by SEC.co (claude-haiku-4-5).