CVE-2021-29526: TensorFlow - Division by 0 in Conv2D
Summary
CVE-2021-29526: Division by 0 in Conv2D. Affects tensorflow across 4 version ranges.
< 2.1.4
>= 2.2.0, < 2.2.3
>= 2.3.0, < 2.3.3
>= 2.4.0, < 2.4.2
Fixed in 4 releases; the minimum fixed version depends 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-29526 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 end-to-end 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 industries and research domains.
Vulnerability Detail
The vulnerability (CVE-2021-29526) exists in the tf.raw_ops.Conv2D function of TensorFlow. An attacker can exploit this vulnerability by triggering a division by zero. The issue arises from a division operation that is performed using a value controlled by the caller. This can lead to unexpected behavior, including crashes or potential security vulnerabilities.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 2.1.42.1.4 -
>= 2.2.0, < 2.2.32.2.3 -
>= 2.3.0, < 2.3.32.3.3 -
>= 2.4.0, < 2.4.22.4.2
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
Currently, there is no known workaround for this vulnerability. It is recommended to apply the official fix or update to the patched version of TensorFlow once it is released.
Conclusion
The vulnerability in TensorFlow (CVE-2021-29526) allows an attacker to trigger a division by zero in the tf.raw_ops.Conv2D function. This can lead to crashes or potential security vulnerabilities. It is crucial to update to the patched version of TensorFlow or apply the official fix once 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, widely used for developing and deploying machine learning models.
This vulnerability can be exploited by an attacker to trigger a division by zero, potentially leading to crashes or other security issues.
The vulnerability affects TensorFlow versions 2.1.4, 2.2.3, 2.3.3, and 2.4.2. The upcoming TensorFlow 2.5.0 release will include a fix for this vulnerability.
Currently, there are no known workarounds for this vulnerability. It is recommended to update to the patched version of TensorFlow once it is released.
You can find more information about this vulnerability in the official TensorFlow documentation and the associated CVE entry.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.