CVE-2021-41209: TensorFlow - Division by 0 in Convolution Operators
Summary
CVE-2021-41209: FPE in convolutions with zero size filters. Affects tensorflow across 3 version ranges.
>= 2.4.0, < 2.4.4
>= 2.5.0, < 2.5.2
>= 2.6.0, < 2.6.1
Fixed in 2.4.4, 2.5.2 or 2.6.1, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow · PyPI
- tensorflow · PyPI
- tensorflow-cpu · PyPI
- tensorflow-gpu · PyPI
The same CVE-2021-41209 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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
TensorFlow is an open source platform for machine learning. It provides a comprehensive ecosystem of tools, libraries, and resources for developing and deploying machine learning models. TensorFlow is widely used in various domains, including computer vision, natural language processing, and deep learning. This vulnerability affects versions 2.4.0 and above of TensorFlow.
Vulnerability Detail
The vulnerability in TensorFlow arises from the implementation of convolution operators. If empty filter tensor arguments are passed to these operators, a division by 0 error occurs. This can be exploited by an attacker to cause a denial of service (DoS) condition or potentially execute arbitrary code. The vulnerability has a medium severity rating.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 2.4.0, < 2.4.42.4.4 -
>= 2.5.0, < 2.5.22.5.2 -
>= 2.6.0, < 2.6.12.6.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround provided for this vulnerability. The recommended action is to update to the patched version of TensorFlow once it is released.
Conclusion
The vulnerability in TensorFlow's convolution operators can lead to a division by 0 error, potentially resulting in a denial of service (DoS) or arbitrary code execution. Users are advised to update their TensorFlow installations to the latest patched version as soon as it becomes available. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tensorflow →
FAQ
TensorFlow is an open source platform for machine learning that provides tools and libraries for developing and deploying machine learning models.
The vulnerability can lead to a division by 0 error in convolution operators, potentially causing a denial of service (DoS) condition or enabling arbitrary code execution.
Versions 2.4.0 and above of TensorFlow are affected by this vulnerability.
Update your TensorFlow installation to the latest patched version once it is released.
No specific workaround is provided. Updating to the patched version is recommended.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.