Skip to main content
← All vulnerabilities
CVE-2021-29539PYSEC-2021-467BIT-TENSORFLOW-2021-29539GHSA-G4H2-GQM3-C9WQPYSEC-2021-176PYSEC-2021-665

Segfault in tf.raw_ops.ImmutableConst

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.1.4, 2.2.3, 2.3.3, 2.4.2, 2.2.0rc0, and 3 more
None on Exploit-DB, Metasploit or GitHub

Summary

TensorFlow is an end-to-end open source platform for machine learning. Calling `tf.raw_ops.ImmutableConst`(https://www.tensorflow.org/api_docs/python/tf/raw_ops/ImmutableConst) with a `dtype` of `tf.resource` or `tf.variant` results in a segfault in the implementation as code assumes that the tensor contents are pure scalars. We have patched the issue in 4f663d4b8f0bec1b48da6fa091a7d29609980fa4 and will release TensorFlow 2.5.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved. If using `tf.raw_ops.ImmutableConst` in code, you can prevent the segfault by inserting a filter for the `dtype` argument.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • tensorflow tensorflow

    fixed in 2.1.4; From 2.2.0 · fixed in 2.2.3; From 2.3.0 · fixed in 2.3.3; From 2.4.0 · fixed in 2.4.2

  • tensorflow-cpuPyPI

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

  • tensorflowPyPI

    fixed in 2.1.4

  • tensorflowPyPI

    From 2.2.0 · fixed in 2.2.3

  • tensorflowPyPI

    From 2.3.0 · fixed in 2.3.3

  • tensorflowPyPI

    From 2.4.0 · fixed in 2.4.2

  • tensorflow-cpuPyPI

    fixed in 2.1.4

  • tensorflow-cpuPyPI

    From 2.2.0 · fixed in 2.2.3

  • tensorflow-cpuPyPI

    From 2.3.0 · fixed in 2.3.3

  • tensorflow-cpuPyPI

    From 2.4.0 · fixed in 2.4.2

  • tensorflow-gpuPyPI

    fixed in 2.1.4

  • tensorflow-gpuPyPI

    From 2.2.0 · fixed in 2.2.3

  • tensorflow-gpuPyPI

    From 2.3.0 · fixed in 2.3.3

  • tensorflow-gpuPyPI

    From 2.4.0 · fixed in 2.4.2

  • tensorflowPyPI

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

  • tensorflow-gpuPyPI

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

References 2

GitHub · tensorflow/tensorflow