Advisory

PYSEC-2021-845

Also known as: BIT-tensorflow-2021-41206, CVE-2021-41206, GHSA-pgcq-h79j-2f69, PYSEC-2021-843, PYSEC-2021-847

Summary

The record has no summary.

Details

TensorFlow is an open source platform for machine learning. In affected versions several TensorFlow operations are missing validation for the shapes of the tensor arguments involved in the call. Depending on the API, this can result in undefined behavior and segfault or CHECK-fail related crashes but in some scenarios writes and reads from heap populated arrays are also possible. We have discovered these issues internally via tooling while working on improving/testing GPU op determinism. As such, we don't have reproducers and there will be multiple fixes for these issues. These fixes will be included in TensorFlow 2.7.0. We will also cherrypick these commits on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

Severity

Not rated by the source.

Dates

Published
2021-11-05 22:15 UTC
Modified
2023-12-06 01:01 UTC

Affected packages and fixes

tensorflow-cpu

PyPI · All systems

Affected

  • introduced 0, fixed 2.4.4, introduced 2.5.0, fixed 2.5.2, introduced 2.6.0, fixed 2.6.1 (ecosystem)

Fixed versions

2.4.4, 2.5.2, 2.6.1

Fix

  • Fixed version 2.4.4
    pip install --upgrade tensorflow-cpu==2.4.4
  • Fixed version 2.5.2
    pip install --upgrade tensorflow-cpu==2.5.2
  • Fixed version 2.6.1
    pip install --upgrade tensorflow-cpu==2.6.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences