CVE-2021-29544

Low

Description

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.

SeverityLow
CVSS2.5
Exploit probability—
ProductGoogle Tensorflow
PublishedMay 14, 2021
First seenMay 14, 2021
Weakness typeCWE-754CWE-754

How to fix

Update
  • google tensorflow2.4.2 or later
  • tensorflow2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3 or later
  • tensorflow-cpu2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3 or later
  • tensorflow-gpu2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3 or later

Affected products

ProductAffected versionsFixed in
google tensorflow2.4.0 ≤ v < 2.4.22.4.2
tensorflowPyPI2.4.0 ≤ v < 2.4.2, v < 2.2.0rc0, 2.2.0 ≤ v < 2.3.0rc0, 2.3.0 ≤ v < 2.3.4, 2.4.0 ≤ v < 2.4.32.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3
tensorflow-cpuPyPI2.4.0 ≤ v < 2.4.2, v < 2.2.0rc0, 2.2.0 ≤ v < 2.3.0rc0, 2.3.0 ≤ v < 2.3.4, 2.4.0 ≤ v < 2.4.32.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3
tensorflow-gpuPyPI2.4.0 ≤ v < 2.4.2, v < 2.2.0rc0, 2.2.0 ≤ v < 2.3.0rc0, 2.3.0 ≤ v < 2.3.4, 2.4.0 ≤ v < 2.4.32.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.