netfilter: nf_tables: skip netdev events generated on netns removal
Summary
GSD-2021-1001892: netfilter: nf_tables: skip netdev events generated on netns removal. Affects Kernel versions >= 767d1216bff82507c945e92fe719dff2083bb2f4, < 90c7c58aa2bd02c65a4c63b7dfe0b16eab12cf9f. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The vulnerability affects the Kernel package in the Linux ecosystem. The Kernel is the core component of the operating system that manages system resources and provides an interface for applications to interact with the hardware. It includes various subsystems, including netfilter, which is responsible for packet filtering and network address translation. The nf_tables component within netfilter handles the configuration and management of packet filtering rules. This vulnerability specifically impacts the handling of netdev events generated during the removal of network namespaces.
Vulnerability Detail
The vulnerability in nf_tables allows netdev events to be processed even after the associated network namespace has been removed. This can lead to a use-after-free condition, where the kernel attempts to access memory that has already been freed. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service by crashing the system. The vulnerability was introduced in Linux Kernel version v5.11 and is fixed in version v5.14.15.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The netfilter nf_tables vulnerability in the Linux Kernel can lead to a use-after-free condition, potentially allowing arbitrary code execution or system crashes. It is crucial to update the Kernel to version v5.14.15 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow an attacker to execute arbitrary code or crash the system by exploiting the use-after-free condition.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.
At the time of this report, there is no known public exploit for this vulnerability. However, it is important to apply the fix as soon as possible to mitigate any potential risks.
The vulnerability itself does not provide remote code execution capabilities. However, if an attacker already has access to the system, they could potentially exploit this vulnerability to escalate their privileges or disrupt the system.
The primary mitigation for this vulnerability is to update the Linux Kernel to the fixed version. Additionally, it is recommended to follow security best practices, such as restricting access to privileged accounts and implementing network segmentation.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.