Skip to content
OpenAdvisories
High · 7.8 CVE-2021-41201 BIT-tensorflow-2021-41201EUVD-2021-0424GHSA-j86v-p27c-73fmPYSEC-2021-394PYSEC-2021-611PYSEC-2021-809

Unitialized access in `EinsumHelper::ParseEquation`

Published Nov 5, 2021 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

TensorFlow is an open source platform for machine learning. In affeced versions during execution, `EinsumHelper::ParseEquation()` is supposed to set the flags in `input_has_ellipsis` vector and `*output_has_ellipsis` boolean to indicate whether there is ellipsis in the corresponding inputs and output. However, the code only changes these flags to `true` and never assigns `false`. This results in unitialized variable access if callers assume that `EinsumHelper::ParseEquation()` always sets these flags. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow >= 2.6.0, < 2.6.1, >= 2.5.0, < 2.5.2, < 2.4.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow >= 2.6.0, < 2.6.1 2.6.1 GHSA-j86v-p27c-73fm
PyPI tensorflow >= 2.5.0, < 2.5.2 2.5.2 GHSA-j86v-p27c-73fm
PyPI tensorflow < 2.4.4 2.4.4 GHSA-j86v-p27c-73fm
PyPI tensorflow < 2.4.4 · >= 2.5.0, < 2.5.2 · >= 2.6.0, < 2.6.1 · >= 2.7.0rc0, < 2.7.0 2.4.4, 2.5.2, 2.6.1, 2.7.0 PYSEC-2021-394
PyPI tensorflow-cpu >= 2.6.0, < 2.6.1 2.6.1 GHSA-j86v-p27c-73fm
PyPI tensorflow-cpu >= 2.5.0, < 2.5.2 2.5.2 GHSA-j86v-p27c-73fm
PyPI tensorflow-cpu < 2.4.4 2.4.4 GHSA-j86v-p27c-73fm
PyPI tensorflow-cpu < 2.4.4 · >= 2.5.0, < 2.5.2 · >= 2.6.0, < 2.6.1 · >= 2.7.0rc0, < 2.7.0 2.4.4, 2.5.2, 2.6.1, 2.7.0 PYSEC-2021-611
PyPI tensorflow-gpu >= 2.6.0, < 2.6.1 2.6.1 GHSA-j86v-p27c-73fm
PyPI tensorflow-gpu >= 2.5.0, < 2.5.2 2.5.2 GHSA-j86v-p27c-73fm
PyPI tensorflow-gpu < 2.4.4 2.4.4 GHSA-j86v-p27c-73fm
PyPI tensorflow-gpu < 2.4.4 · >= 2.5.0, < 2.5.2 · >= 2.6.0, < 2.6.1 · >= 2.7.0rc0, < 2.7.0 2.4.4, 2.5.2, 2.6.1, 2.7.0 PYSEC-2021-809

References