CVE-2021-29608

Medium

Description

TensorFlow is an end-to-end open source platform for machine learning. Due to lack of validation in `tf.raw_ops.RaggedTensorToTensor`, an attacker can exploit an undefined behavior if input arguments are empty. The implementation(https://github.com/tensorflow/tensorflow/blob/656e7673b14acd7835dc778867f84916c6d1cac2/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L356-L360) only checks that one of the tensors is not empty, but does not check for the other ones. There are multiple `DCHECK` validations to prevent heap OOB, but these are no-op in release builds, hence they don't prevent anything. The fix will be included in TensorFlow 2.5.0. We will also cherrypick these commits 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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductGoogle Tensorflow
PublishedMay 14, 2021
First seenMay 14, 2021
Weakness typeCWE-131CWE-131

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.