HIGH 7.8

CVE-2026-53000: Linux Kernel Netfilter NAT Use-After-Free Vulnerability

A memory management flaw in the Linux kernel's netfilter NAT (Network Address Translation) subsystem could allow a local, unprivileged attacker to crash the system or potentially execute code with elevated privileges. The vulnerability stems from improper deferred cleanup of NAT hook structures when they are exposed to userspace inspection, creating a use-after-free condition. An attacker with local access and standard user permissions could trigger this by interacting with netfilter hook dump functionality, leading to kernel instability or privilege escalation.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-763
Affected products
3 configuration(s)
Published / Modified
2026-06-24 / 2026-07-15

NVD description (verbatim)

In the Linux kernel, the following vulnerability has been resolved: netfilter: nat: use kfree_rcu to release ops Florian Westphal says: "Historically this is not an issue, even for normal base hooks: the data path doesn't use the original nf_hook_ops that are used to register the callbacks. However, in v5.14 I added the ability to dump the active netfilter hooks from userspace. This code will peek back into the nf_hook_ops that are available at the tail of the pointer-array blob used by the datapath. The nat hooks are special, because they are called indirectly from the central nat dispatcher hook. They are currently invisible to the nfnl hook dump subsystem though. But once that changes the nat ops structures have to be deferred too." Update nf_nat_register_fn() to deal with partial exposition of the hooks from error path which can be also an issue for nfnetlink_hook.

6 reference(s) · View on NVD →

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

Technical summary

The vulnerability resides in the netfilter NAT subsystem's hook registration mechanism. Prior to v5.14, NAT hooks were never exposed to userspace inspection via the nfnetlink hook dump interface. However, after the addition of hook dumping capabilities, the nat_ops structures became indirectly accessible to userspace. The bug occurs because nf_nat_register_fn() fails to use deferred RCU (Read-Copy-Update) cleanup when deallocating these ops structures on error paths. When the nfnetlink_hook subsystem attempts to peek into these structures during dump operations, a race condition can occur where the ops are freed while still being accessed, resulting in a use-after-free condition. The fix applies kfree_rcu semantics to ensure proper synchronization between the data path and userspace inspection interfaces.

Business impact

Organizations running affected Linux systems face potential denial-of-service scenarios where local users could unexpectedly crash kernel components or entire systems. In multi-tenant environments or container platforms, this becomes particularly critical as any unprivileged local user could trigger the fault. For infrastructure operators, this translates to unplanned downtime and service disruptions. In scenarios where privilege escalation is possible through the use-after-free condition, attackers could gain kernel-level access to data and system resources. Container platforms and cloud providers should treat this as a priority given the low barrier to exploitation and system-wide impact.

Affected systems

Linux kernel systems are the primary target. This affects both community Linux distributions and Red Hat Enterprise Linux variants. The vulnerability was introduced in kernel v5.14 when hook dumping was added, making any kernel version from v5.14 onwards potentially affected until patched. Systems explicitly using netfilter NAT functionality (common in routers, firewalls, and containers) face the highest exposure. Verify your specific kernel version and distribution against vendor advisories for exact patch availability.

Exploitability

The vulnerability is considered highly exploitable due to its low privilege requirements—only local user-level access is needed, with no special capabilities required. The attack surface is broad since netfilter functionality is commonly enabled in default kernel configurations. Triggering the condition requires interaction with the nfnetlink hook dump interface, which is accessible to unprivileged processes. However, successful exploitation depends on precise timing to catch the use-after-free window, which may require multiple attempts or specific system load conditions. No public exploit code is known at this time, but the relative simplicity of the underlying issue suggests that proof-of-concept development would not be prohibitively difficult.

Remediation

Apply kernel updates from your Linux distribution vendor that incorporate the netfilter NAT RCU fix. Red Hat Enterprise Linux users should check RHSA advisories for their specific version branch. For other distributions, check your vendor's security advisory portal. Verify that the patch includes the change to nf_nat_register_fn() to use kfree_rcu for deferred ops cleanup. Until patching is possible, limit local user access to affected systems and restrict unprivileged process interaction with netfilter interfaces where feasible through LSM policies or container isolation, though these are only temporary mitigations.

Patch guidance

Identify your running kernel version using 'uname -r' and cross-reference against your Linux distribution's security advisory. For Red Hat Enterprise Linux, consult the RHSA database for your specific version. Kernel patches are typically delivered through package managers (yum, apt, dnf) and require a system reboot to take effect. Test patches in non-production environments first, particularly in virtualized or containerized deployments to ensure stability. Prioritize systems running netfilter-dependent workloads—firewalls, NAT gateways, and container platforms—for earlier patching. Schedule reboot windows to minimize service disruption.

Detection guidance

Monitor kernel logs and dmesg output for page faults, general protection faults, or UAF (use-after-free) panics in the netfilter subsystem, particularly those mentioning nf_nat_register_fn or nfnetlink_hook. System administrators can enable kernel address sanitizer (KASAN) in development or test environments to catch the condition earlier. Watch for unexpected kernel crashes or reboots on affected systems, especially those correlating with routine maintenance tasks or processes that dump netfilter state (such as nftables rule inspection). Intrusion detection systems should flag any attempts to interact with nfnetlink interfaces from unprivileged processes in high-security environments, though normal operation does use these interfaces.

Why prioritize this

This vulnerability merits immediate prioritization due to the combination of high severity (CVSS 7.8), local-only but unprivileged attack requirements, and widespread kernel exposure. The potential for both denial-of-service and privilege escalation makes it a significant risk in shared or multi-tenant systems. The active development of netfilter functionality and hook dumping suggests this may be just one of several synchronization issues in this subsystem, warranting accelerated patching and monitoring cycles.

Risk score, explained

The CVSS 7.8 rating reflects a HIGH severity vulnerability with local attack vector, low complexity, and low privilege requirements. The impact spans confidentiality, integrity, and availability. While the attack requires local access (not network-based), the ease of triggering and the system-wide consequences elevate this above typical local bugs. In environments where local user isolation is weak or non-existent, the effective risk may be even higher.

Frequently asked questions

Can this vulnerability be exploited remotely?

No. The vulnerability requires local access to the affected system with at least unprivileged user-level permissions. It cannot be triggered from a remote network interface.

What is the relationship between netfilter hooks and userspace inspection?

Starting in kernel v5.14, the nfnetlink_hook subsystem allows userspace tools to inspect active netfilter hooks for diagnostic and monitoring purposes. NAT hooks, which were previously invisible to this interface, can now be examined—but the NAT subsystem did not properly synchronize memory cleanup with these inspections, creating a race condition.

Will updating userspace tools like iptables or nftables fix this?

No. This is a kernel-level vulnerability that requires a kernel update. Userspace firewall tools cannot fix or work around the underlying memory management issue in the netfilter NAT subsystem.

Is this vulnerability currently being exploited in the wild?

As of the available information, this vulnerability has not been added to any active exploitation tracking databases (KEV). However, the relative simplicity of the issue and the low barrier to exploitation suggest vigilance is warranted.

This analysis is provided for informational purposes based on available source data and should not be considered definitive for all environments. Organizations must verify patch availability and compatibility with their specific Linux distributions and kernel versions through official vendor advisories. Exploitation complexity and impact may vary based on system configuration, kernel build options, and security policies. No liability is assumed for actions taken based on this guidance; organizations are responsible for their own security assessments and patch validation. Source: NVD (public-domain), retrieved 2026-07-31. Analysis generated by SEC.co (claude-haiku-4-5).