Vulnerabilities · 2021 · Google
CVE-2021-37638
Google Tensorflow vulnerability
TensorFlow is an end-to-end open source platform for machine learning. Sending invalid argument for `row_partition_types` of `tf.raw_ops.RaggedTensorToTensor` API results in a null pointer dereference and undefined behavior. The [implementation](https://github.com/tensorflow/tensorflow/blob/47a06f40411a69c99f381495f490536972152ac0/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L328) accesses the first element of a user supplied list of values without validating that the provided list is not empty. We have patched the issue in GitHub commit 301ae88b331d37a2a16159b65b255f4f9eb39314. 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.
Affected products
Tensorflow. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Google Tensorflow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/tensorflow/tensorflow/commit/301ae88b331d37a2a16159b65b255f4f9eb39314 · Patch
- github.com/tensorflow/tensorflow/security/advisories/GHSA-hwr7-8gxx-fj5p · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-37638
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-551.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-749.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-260.yaml
- github.com/advisories/GHSA-hwr7-8gxx-fj5p
- nvd.nist.gov/vuln/detail/CVE-2021-37638
- cve.org/CVERecord?id=CVE-2021-37638
More vulnerabilities in Google products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.