CVE-2021-29555: TensorFlow FusedBatchNorm Denial of Service
Summary
CVE-2021-29555: Division by 0 in FusedBatchNorm. 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-29555 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 community resources that lets researchers and developers easily build and deploy machine learning models. TensorFlow is widely used in various industries and applications.
Vulnerability Detail
A denial of service vulnerability (CVE-2021-29555) exists in TensorFlow's FusedBatchNorm implementation. The vulnerability arises due to a runtime error in the FusedBatchNorm operation, specifically in the division operation based on the last dimension of the input tensor. An attacker can exploit this vulnerability by providing a manipulated input tensor, leading to a runtime error and causing a denial of service. The impact of this vulnerability can disrupt the availability of TensorFlow-based applications and systems.
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
There is no known workaround for this vulnerability. It is recommended to apply the official fix by updating TensorFlow to the latest version.
Conclusion
The CVE-2021-29555 vulnerability in TensorFlow's FusedBatchNorm operation can be exploited to cause a denial of service. Users should update their TensorFlow installations to version 2.5.0 or later to mitigate this vulnerability. For further support and assistance in 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 building and deploying machine learning models.
The vulnerability can be exploited to cause a denial of service, disrupting the availability of TensorFlow-based applications and systems.
To fix this vulnerability, update your TensorFlow installation to version 2.5.0 or later by following the official TensorFlow documentation.
There is no known workaround for this vulnerability. It is recommended to apply the official fix by updating TensorFlow to the latest version.
You can find more information about this vulnerability in the official TensorFlow documentation and the CVE entry (CVE-2021-29555).
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.