CVE-2021-41220
Use after free in `CollectiveReduceV2`
7.8
HIGH
CVSS 3.1
EPSS 0.02%
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.
How to fix CVE-2021-41220
To remediate CVE-2021-41220, upgrade the affected package to a fixed version below.
- —upgrade to 2.6.1 or later
- —upgrade to 2.6.1 or later
- —upgrade to ca38dab9d3ee66c5de06f11af9a4b1200da5ef75 or later
- —upgrade to ca38dab9d3ee66c5de06f11af9a4b1200da5ef75 or later
- —upgrade to 2.6.1 or later
- —upgrade to ca38dab9d3ee66c5de06f11af9a4b1200da5ef75 or later
- —upgrade to 2.6.1 or later
Is CVE-2021-41220 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (7)
- >= 2.6.0, < 2.6.1
- >= 2.6.0, < 2.6.1
- from 0, < ca38dab9d3ee66c5de06f11af9a4b1200da5ef75 | >= 2.6.0, < 2.6.1, >= 2.7.0rc0, < 2.7.0
- from 0, < ca38dab9d3ee66c5de06f11af9a4b1200da5ef75 | >= 2.6.0, < 2.6.1, >= 2.7.0rc0, < 2.7.0
- >= 2.6.0, < 2.6.1
- from 0, < ca38dab9d3ee66c5de06f11af9a4b1200da5ef75 | >= 2.6.0, < 2.6.1, >= 2.7.0rc0, < 2.7.0
- >= 2.6.0, < 2.6.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |