High severity7.8NVD Advisory· Published Nov 5, 2021· Updated Jun 17, 2026
CVE-2021-41220
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
8cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*range: >=2.6.0,<2.6.1
- cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*
- 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/tensorflow/tensorflow/commit/ca38dab9d3ee66c5de06f11af9a4b1200da5ef75nvdPatchThird Party AdvisoryWEB
- github.com/tensorflow/tensorflow/security/advisories/GHSA-gpfh-jvf9-7wg5nvdExploitPatchThird Party AdvisoryWEB
- 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
News mentions
0No linked articles in our index yet.