Skip to main content
← All vulnerabilities
CVE-2021-29544PYSEC-2021-472BIT-TENSORFLOW-2021-29544GHSA-6G85-3HM8-83F9PYSEC-2021-181PYSEC-2021-670

CHECK-fail in `QuantizeAndDequantizeV4Grad`

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3
None on Exploit-DB, Metasploit or GitHub

Summary

TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a denial of service via a `CHECK`-fail in `tf.raw_ops.QuantizeAndDequantizeV4Grad`. This is because the implementation does not validate the rank of the `input_*` tensors. In turn, this results in the tensors being passes as they are to `QuantizeAndDequantizePerChannelGradientImpl`. However, the `vec<T>` method, requires the rank to 1 and triggers a `CHECK` failure otherwise. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2 as this is the only other affected version.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • tensorflow tensorflow

    From 2.4.0 · fixed in 2.4.2

  • tensorflow-cpuPyPI

    fixed in 2.2.0rc0; From 2.2.0 · fixed in 2.3.0rc0; From 2.3.0 · fixed in 2.3.4; From 2.4.0 · fixed in 2.4.3

  • tensorflow-gpuPyPI

    fixed in 2.2.0rc0; From 2.2.0 · fixed in 2.3.0rc0; From 2.3.0 · fixed in 2.3.4; From 2.4.0 · fixed in 2.4.3

  • tensorflowPyPI

    fixed in 2.2.0rc0; From 2.2.0 · fixed in 2.3.0rc0; From 2.3.0 · fixed in 2.3.4; From 2.4.0 · fixed in 2.4.3

  • tensorflowPyPI

    From 2.4.0 · fixed in 2.4.2

  • tensorflow-cpuPyPI

    From 2.4.0 · fixed in 2.4.2

  • tensorflow-gpuPyPI

    From 2.4.0 · fixed in 2.4.2

References 4

GitHub · tensorflow/tensorflow