Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
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.
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.
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.
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.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.