Linux Kernel Use-After-Free Vulnerability in Net Namespace Handling

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's network namespace management. This issue arises in the 'nfqnl_nf_hook_drop()' function when the 'ops_init()' initialization process fails. The vulnerability occurs because, after a failed initialization, the allocated data is freed, leaving a pointer in 'net->gen' invalid. Consequently, when 'nfqnl_nf_hook_drop()' is called to clean up the network namespace, it attempts to access an invalid memory address, leading to potential memory corruption or exploitation.

Impact

Exploitation of this vulnerability causes a use-after-free condition, which can lead to memory corruption. Such conditions are often exploitable, allowing for arbitrary code execution or causing a denial-of-service by crashing the system.

Reproduction

The vulnerability can be reproduced by creating a network namespace and invoking the 'ops_init()' function with a failing initialization routine. This process can be automated with a script or program that manages network namespaces and simulates the failure during the initialization phase. Once the namespace is set up and the failure is induced, the 'nfqnl_nf_hook_drop()' function can be called, which will then access the invalid memory, demonstrating the use-after-free vulnerability.

Remediation

Users can upgrade to the patched version of the Linux kernel where this vulnerability has been addressed. The specific commit that fixes this issue is 'd266935ac43d57586e311a087510fe6a084af742', which is available in the Linux kernel stable tree.

Added: Dec 24, 2025, 4:41 PM
Updated: Dec 24, 2025, 4:41 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.