High severityNVD Advisory· Published Nov 5, 2021· Updated Aug 4, 2024
Use after free in `CollectiveReduceV2`
CVE-2021-41220
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
tensorflowPyPI | >= 2.6.0, < 2.6.1 | 2.6.1 |
tensorflow-cpuPyPI | >= 2.6.0, < 2.6.1 | 2.6.1 |
tensorflow-gpuPyPI | >= 2.6.0, < 2.6.1 | 2.6.1 |
Affected products
5- osv-coords4 versions
>= 2.6.0, < 2.6.1+ 3 more
- (no CPE)range: >= 2.6.0, < 2.6.1
- (no CPE)range: >= 2.6.0, < 2.6.1
- (no CPE)range: >= 2.6.0, < 2.6.1
- (no CPE)range: >= 2.6.0, < 2.6.1
- Range: >= 2.6.0, < 2.6.1
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-gpfh-jvf9-7wg5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-41220ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-629.yamlghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-827.yamlghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-412.yamlghsaWEB
- github.com/tensorflow/tensorflow/commit/ca38dab9d3ee66c5de06f11af9a4b1200da5ef75ghsax_refsource_MISCWEB
- github.com/tensorflow/tensorflow/security/advisories/GHSA-gpfh-jvf9-7wg5ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.