CVE-2021-29555: TensorFlow FusedBatchNorm Denial of Service

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

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

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.

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

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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.4 2.1.4
  • >= 2.2.0, < 2.2.3 2.2.3
  • >= 2.3.0, < 2.3.3 2.3.3
  • >= 2.4.0, < 2.4.2 2.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 →

Share this vulnerability

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).

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.1.4 2.1.4
  • >= 2.2.0, < 2.2.3 2.2.3
  • >= 2.3.0, < 2.3.3 2.3.3
  • >= 2.4.0, < 2.4.2 2.4.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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