netfilter: nft_limit: Avoid Divide Error in nft_limit_init
Summary
GSD-2021-1000033: netfilter: nft_limit: avoid possible divide error in nft_limit_init. Affects Kernel versions >= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, < dc1732baa9da5b68621586bf8636ebbc27dc62d2. 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 netfilter package is a part of the Linux Kernel ecosystem and is responsible for implementing packet filtering and network address translation (NAT) in the Linux operating system. It provides a framework for various network-related operations, including firewalling and traffic control. The nft_limit component within netfilter is used to limit the rate of packets matching specific criteria. However, a vulnerability has been discovered in the nft_limit_init function, which could lead to a divide error.
Vulnerability Detail
The vulnerability in nft_limit_init arises from a possible divide error. When initializing the nft_limit component, a division operation is performed to calculate the rate at which packets should be limited. However, if the divisor is zero, a divide error occurs, leading to a potential system crash or other unexpected behavior. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) condition or execute arbitrary code with elevated privileges. The vulnerability was introduced in Linux Kernel version 4.13 and has been fixed in version 5.10.32.
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 →
Conclusion
The netfilter nft_limit vulnerability in the Linux Kernel's nft_limit_init function can lead to a divide error, potentially resulting in a system crash or the execution of arbitrary code with elevated privileges. It is crucial to update the Linux Kernel to version 5.10.32 or later to mitigate this vulnerability. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
Netfilter is a component of the Linux Kernel that provides packet filtering and network address translation (NAT) functionalities. It allows for the implementation of firewall rules and traffic control in the Linux operating system.
nft_limit is a component of netfilter that enables the limitation of packet rates based on specific criteria. It allows for controlling the flow of network traffic by restricting the rate at which packets are processed.
A divide error occurs when a division operation attempts to divide a number by zero. This results in an arithmetic exception that can lead to a system crash or unexpected behavior. In the context of this vulnerability, a divide error in nft_limit_init can be exploited to cause a denial-of-service (DoS) condition or execute arbitrary code with elevated privileges.
You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in software, without requiring access to the code or installation.
You can find more information about this vulnerability in the vulnerability database maintained by the Cloud Security Alliance. The specific vulnerability ID is GSD-2021-1000033. The database entry can be accessed at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/GSD-2021-1000033.json.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.