VDB
Sign up
HIGH7.8

PYSEC-2021-629

Quick fix

PYSEC-2021-629 — tensorflow-cpu: upgrade to the fixed version with the command below.

pip install --upgrade 'tensorflow-cpu>=ca38dab9d3ee66c5de06f11af9a4b1200da5ef75'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/tensorflow-cpu
Introduced in: 0Fixed in: ca38dab9d3ee66c5de06f11af9a4b1200da5ef75
Fixpip install --upgrade 'tensorflow-cpu>=ca38dab9d3ee66c5de06f11af9a4b1200da5ef75'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/tensorflow-cpu"]}'