CVE-2021-37683: TensorFlow - Division by 0 Error
Summary
CVE-2021-37683: Division by zero in TensorFlow Lite division operations. Affects tensorflow across 3 version ranges.
>= 2.3.0, < 2.3.4
>= 2.4.0, < 2.4.3
>= 2.5.0, < 2.5.1
Fixed in 2.3.4, 2.4.3 or 2.5.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-37683 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 for building and deploying machine learning models. TensorFlow is widely used in various industries and research domains for its powerful capabilities and ease of use.
Vulnerability Detail
The vulnerability (CVE-2021-37683) in TensorFlow affects the TFLite implementation of division. The issue arises from a lack of validation for zero elements in the divisor tensor. This vulnerability can lead to a division by zero error, potentially causing crashes or incorrect results in machine learning models utilizing TensorFlow. The vulnerability has been patched in the latest versions of TensorFlow, including 2.6.0, and will also be backported to earlier versions.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 2.3.0, < 2.3.42.3.4 -
>= 2.4.0, < 2.4.32.4.3 -
>= 2.5.0, < 2.5.12.5.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 mentioned for this vulnerability.
Conclusion
The vulnerability in TensorFlow's TFLite division operation has been identified and patched in the latest versions. It is crucial to update to the latest version or apply the provided patch to ensure the security and stability of machine learning models built with TensorFlow. 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 a comprehensive ecosystem for building and deploying machine learning models.
The vulnerability can lead to division by zero errors in TensorFlow's TFLite implementation, potentially causing crashes or incorrect results in machine learning models.
The vulnerability affects TensorFlow versions 2.3.0 to 2.3.4, 2.4.0 to 2.4.3, 2.5.0, and 2.6.0-rc0 to 2.6.0-rc2.
To fix the vulnerability, update TensorFlow to version 2.6.0 or apply the provided patch for earlier affected versions.
You can find more information about the vulnerability in the GitHub commit 1e206baedf8bef0334cca3eb92bab134ef525a28 and the associated CVE-2021-37683.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.