Advisory

PYSEC-2021-626

Also known as: BIT-tensorflow-2021-41217, CVE-2021-41217, GHSA-5crj-c72x-m7gq, PYSEC-2021-409, PYSEC-2021-824

Summary

The record has no summary.

Details

TensorFlow is an open source platform for machine learning. In affected versions the process of building the control flow graph for a TensorFlow model is vulnerable to a null pointer exception when nodes that should be paired are not. This occurs because the code assumes that the first node in the pairing (e.g., an Enter node) always exists when encountering the second node (e.g., an Exit node). When this is not the case, parent is nullptr so dereferencing it causes a crash. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit 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 21: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, introduced 2.7.0rc0, fixed 2.7.0 (ecosystem)

Fixed versions

2.4.4, 2.5.2, 2.6.1, 2.7.0

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
  • Fixed version 2.7.0
    pip install --upgrade tensorflow-cpu==2.7.0

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