Vulnerability record · CVE-2021-41220 · published 5 November 2021
CVE-2021-41220: Google tensorflow use after free vulnerability
Google · Tensorflow
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.
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/tensorflow/tensorflow/commit/ca38dab9d3ee66c5de06f11af9a4b1200da5ef75 | PatchThird Party Advisory |
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gpfh-jvf9-7wg5 | ExploitPatchThird Party Advisory |
| https://github.com/tensorflow/tensorflow/commit/ca38dab9d3ee66c5de06f11af9a4b1200da5ef75 | PatchThird Party Advisory |
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gpfh-jvf9-7wg5 | ExploitPatchThird Party Advisory |
Track CVE-2021-41220 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-41220), CISA KEV, FIRST EPSS (scores of 2026-11-22). This page is refreshed as NVD updates the record.