Skip to main content
← All vulnerabilities
CVE-2021-37671GHSA-QR82-2C78-4M8HBIT-TENSORFLOW-2021-37671PYSEC-2021-293PYSEC-2021-584PYSEC-2021-782

Reference binding to nullptr in map operations in TensorFlow

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.5.1, 2.4.3, 2.3.4
None on Exploit-DB, Metasploit or GitHub

Summary

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.Map*` and `tf.raw_ops.OrderedMap*` operations. The implementation has a check in place to ensure that `indices` is in ascending order, but does not check that `indices` is not empty. We have patched the issue in GitHub commit 532f5c5a547126c634fefd43bbad1dc6417678ac. 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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • tensorflow tensorflow

    From 2.5.0 · fixed in 2.5.1; From 2.4.0 · fixed in 2.4.3; fixed in 2.3.4

  • tensorflowPyPI

    fixed in 2.3.4

  • tensorflowPyPI

    From 2.4.0 · fixed in 2.4.3

  • tensorflowPyPI

    From 2.5.0 · fixed in 2.5.1

  • tensorflow-cpuPyPI

    fixed in 2.3.4

  • tensorflow-cpuPyPI

    From 2.4.0 · fixed in 2.4.3

  • tensorflow-cpuPyPI

    From 2.5.0 · fixed in 2.5.1

  • tensorflow-gpuPyPI

    fixed in 2.3.4

  • tensorflow-gpuPyPI

    From 2.4.0 · fixed in 2.4.3

  • tensorflow-gpuPyPI

    From 2.5.0 · fixed in 2.5.1

  • tensorflow-gpuPyPI

    From 2.3.0 · fixed in 2.3.4; From 2.4.0 · fixed in 2.4.3

  • tensorflowPyPI

    From 2.3.0 · fixed in 2.3.4; From 2.4.0 · fixed in 2.4.3

  • tensorflow-cpuPyPI

    From 2.3.0 · fixed in 2.3.4; From 2.4.0 · fixed in 2.4.3

References 2

GitHub · tensorflow/tensorflow