CVE-2021-37666

High

Description

TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause undefined behavior via binding a reference to null pointer in `tf.raw_ops.RaggedTensorToVariant`. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/ragged_tensor_to_variant_op.cc#L129) has an incomplete validation of the splits values, missing the case when the argument would be empty. We have patched the issue in GitHub commit be7a4de6adfbd303ce08be4332554dff70362612. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.

SeverityHigh
CVSS7.8
Exploit probability—
ProductGoogle Tensorflow
PublishedAug 12, 2021
First seenAug 12, 2021
Weakness typeCWE-824CWE-824

How to fix

Update
  • google tensorflow2.3.4, 2.4.3 or later
  • tensorflow2.3.4, 2.4.3, 2.5.1 or later
  • tensorflow-cpu2.3.4, 2.4.3, 2.5.1 or later
  • tensorflow-gpu2.3.4, 2.4.3, 2.5.1 or later

Affected products

ProductAffected versionsFixed in
google tensorflow2.3.0 ≤ v < 2.3.4, 2.4.0 ≤ v < 2.4.3, 2.5.0, 2.6.02.3.4, 2.4.3
tensorflowPyPIv < 2.3.4, 2.4.0 ≤ v < 2.4.3, 2.5.0 ≤ v < 2.5.1, 2.3.0 ≤ v < 2.3.42.3.4, 2.4.3, 2.5.1
tensorflow-cpuPyPIv < 2.3.4, 2.4.0 ≤ v < 2.4.3, 2.5.0 ≤ v < 2.5.1, 2.3.0 ≤ v < 2.3.42.3.4, 2.4.3, 2.5.1
tensorflow-gpuPyPIv < 2.3.4, 2.4.0 ≤ v < 2.4.3, 2.5.0 ≤ v < 2.5.1, 2.3.0 ≤ v < 2.3.42.3.4, 2.4.3, 2.5.1

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.

CVE-2021-37666 · Google Tensorflow · Dark Radar