netfilter: nft_limit: Avoid Divide Error in nft_limit_init

Kernel Updated 02 Oct 2025

Summary

31/05/2021
N/A
No i
Unrated
Not published

GSD-2021-1000028: netfilter: nft_limit: avoid possible divide error in nft_limit_init. Affects Kernel versions >= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, < 1bb3ee4259936cc3b2d80a4a480bbb4868575071. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The netfilter package is a component of the Linux Kernel that provides firewall functionality. It allows for the filtering and manipulation of network packets. The nft_limit module within netfilter is responsible for rate limiting network traffic. It sets limits on the number of packets that can pass through a specific network interface or port within a given time frame. This vulnerability affects the nft_limit module in the Linux Kernel.

Vulnerability Detail

The vulnerability in the nft_limit module of the netfilter package arises from a possible divide error in the nft_limit_init function. This error can occur when initializing the rate limit parameters, potentially leading to a divide-by-zero error. An attacker could exploit this vulnerability to cause a denial-of-service (DoS) condition by sending specially crafted network packets that trigger the divide error. The impact and attack plausibility of this vulnerability have not been proven.

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 known workaround for this vulnerability. It is necessary to update the Linux Kernel to the fixed version.

Conclusion

The netfilter package in the Linux Kernel is vulnerable to a divide error in the nft_limit module. This vulnerability can be exploited to cause a denial-of-service condition. It is recommended to update the Kernel to version v5.11.16 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The netfilter package is a component of the Linux Kernel that provides firewall functionality. It allows for the filtering and manipulation of network packets.

The nft_limit module is a part of the netfilter package that enables rate limiting of network traffic. It sets limits on the number of packets that can pass through a specific network interface or port within a given time frame.

A divide error occurs when attempting to divide a number by zero. It is an arithmetic error that can cause program crashes or unexpected behavior.

The impact of this vulnerability is a potential denial-of-service (DoS) condition. An attacker could exploit the divide error in the nft_limit module to cause the affected system to crash or become unresponsive.

To fix this vulnerability, update the Linux Kernel to version v5.11.16 or later, which includes the necessary fix for the nft_limit module.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback