CVE-2021-29568

Low

Description

TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger undefined behavior by binding to null pointer in `tf.raw_ops.ParameterizedTruncatedNormal`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/3f6fe4dfef6f57e768260b48166c27d148f3015f/tensorflow/core/kernels/parameterized_truncated_normal_op.cc#L630) does not validate input arguments before accessing the first element of `shape`. If `shape` argument is empty, then `shape_tensor.flat<T>()` is an empty array. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

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

How to fix

Update
  • google tensorflow2.1.4, 2.2.3, 2.3.3, 2.4.2 or later
  • tensorflow2.1.4, 2.2.3, 2.3.3, 2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3 or later
  • tensorflow-cpu2.1.4, 2.2.3, 2.3.3, 2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3 or later
  • tensorflow-gpu2.1.4, 2.2.3, 2.3.3, 2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3 or later

Affected products

ProductAffected versionsFixed in
google tensorflowv < 2.1.4, 2.2.0 ≤ v < 2.2.3, 2.3.0 ≤ v < 2.3.3, 2.4.0 ≤ v < 2.4.22.1.4, 2.2.3, 2.3.3, 2.4.2
tensorflowPyPIv < 2.1.4, 2.2.0 ≤ v < 2.2.3, 2.3.0 ≤ v < 2.3.3, 2.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.1.4, 2.2.3, 2.3.3, 2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3
tensorflow-cpuPyPIv < 2.1.4, 2.2.0 ≤ v < 2.2.3, 2.3.0 ≤ v < 2.3.3, 2.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.1.4, 2.2.3, 2.3.3, 2.4.2, 2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3
tensorflow-gpuPyPIv < 2.1.4, 2.2.0 ≤ v < 2.2.3, 2.3.0 ≤ v < 2.3.3, 2.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.1.4, 2.2.3, 2.3.3, 2.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.