Linux Kernel Netfilter nf_tables Netdev Hook Release Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's netfilter component, specifically within the nf_tables subsystem. This issue arises when a virtual Ethernet (veth) device is released, prompting the release of its peer net namespace device. If the peer net namespace is also scheduled for removal, the device memory may be freed before the appropriate cleanup hooks are executed. This sequence of events leads to a memory access violation, where freed memory is incorrectly accessed, causing a kernel panic.

Impact

Exploitation of this vulnerability causes a use-after-free error, where the kernel attempts to access memory that has already been freed. This can lead to memory corruption, potentially allowing for arbitrary code execution or other malicious activities.

Reproduction

To reproduce this vulnerability, create a pair of virtual Ethernet devices (veth pair) and attach them to different network namespaces. Then, initiate the removal of one net namespace while simultaneously releasing the veth device. This will trigger the vulnerability by queuing the peer net namespace for removal before the necessary cleanup hooks can be executed, leading to a use-after-free condition.

Remediation

Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed. Instructions for downloading the patched version are available on the official Linux kernel website.

Added: Dec 30, 2025, 3:53 PM
Updated: Dec 30, 2025, 3:53 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
7.7
relevance
1.7
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.