Skip to main content
← All vulnerabilities
CVE-2021-37650PYSEC-2021-563BIT-TENSORFLOW-2021-37650GHSA-F8H4-7RGH-Q2GMPYSEC-2021-272PYSEC-2021-761

Segfault and heap buffer overflow in `{Experimental,}DatasetToTFRecord` 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 the implementation for `tf.raw_ops.ExperimentalDatasetToTFRecord` and `tf.raw_ops.DatasetToTFRecord` can trigger heap buffer overflow and segmentation fault. The implementation assumes that all records in the dataset are of string type. However, there is no check for that, and the example given above uses numeric types. We have patched the issue in GitHub commit e0b6e58c328059829c3eb968136f17aa72b6c876. 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

  • tensorflow-cpuPyPI

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

  • 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

  • tensorflowPyPI

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

  • tensorflow-gpuPyPI

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

References 2

GitHub · tensorflow/tensorflow