Skip to content
OpenAdvisories
High · 7.8 CVE-2021-41220 BIT-tensorflow-2021-41220EUVD-2021-0442GHSA-gpfh-jvf9-7wg5PYSEC-2021-412PYSEC-2021-629PYSEC-2021-827

Use after free in `CollectiveReduceV2`

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

Description

TensorFlow is an open source platform for machine learning. In affected versions the async implementation of `CollectiveReduceV2` suffers from a memory leak and a use after free. This occurs due to the asynchronous computation and the fact that objects that have been `std::move()`d from are still accessed. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, as this version is the only one that is also affected.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow >= 2.6.0, < 2.6.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow >= 2.6.0, < 2.6.1 2.6.1 GHSA-gpfh-jvf9-7wg5
PyPI tensorflow >= 2.6.0, < 2.6.1 · >= 2.7.0rc0, < 2.7.0 2.6.1, 2.7.0 PYSEC-2021-412
PyPI tensorflow-cpu >= 2.6.0, < 2.6.1 2.6.1 GHSA-gpfh-jvf9-7wg5
PyPI tensorflow-cpu >= 2.6.0, < 2.6.1 · >= 2.7.0rc0, < 2.7.0 2.6.1, 2.7.0 PYSEC-2021-629
PyPI tensorflow-gpu >= 2.6.0, < 2.6.1 2.6.1 GHSA-gpfh-jvf9-7wg5
PyPI tensorflow-gpu >= 2.6.0, < 2.6.1 · >= 2.7.0rc0, < 2.7.0 2.6.1, 2.7.0 PYSEC-2021-827

References