Advisory

PYSEC-2021-665

Also known as: BIT-tensorflow-2021-29539, CVE-2021-29539, GHSA-g4h2-gqm3-c9wq, PYSEC-2021-176, PYSEC-2021-467

Summary

The record has no summary.

Details

TensorFlow is an end-to-end open source platform for machine learning. Calling tf.raw_ops.ImmutableConst(https://www.tensorflow.org/api_docs/python/tf/raw_ops/ImmutableConst) with a dtype of tf.resource or tf.variant results in a segfault in the implementation as code assumes that the tensor contents are pure scalars. We have patched the issue in 4f663d4b8f0bec1b48da6fa091a7d29609980fa4 and will release TensorFlow 2.5.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved. If using tf.raw_ops.ImmutableConst in code, you can prevent the segfault by inserting a filter for the dtype argument.

Severity

Not rated by the source.

Dates

Published
2021-05-14 20:15 UTC
Modified
2023-12-06 01:01 UTC

Affected packages and fixes

tensorflow-gpu

PyPI · All systems

Affected

  • introduced 0, fixed 2.2.0rc0, introduced 2.2.0, fixed 2.3.0rc0, introduced 2.3.0, fixed 2.3.4, introduced 2.4.0, fixed 2.4.3 (ecosystem)

Fixed versions

2.2.0rc0, 2.3.0rc0, 2.3.4, 2.4.3

Fix

  • Fixed version 2.2.0rc0
    pip install --upgrade tensorflow-gpu==2.2.0rc0
  • Fixed version 2.3.0rc0
    pip install --upgrade tensorflow-gpu==2.3.0rc0
  • Fixed version 2.3.4
    pip install --upgrade tensorflow-gpu==2.3.4
  • Fixed version 2.4.3
    pip install --upgrade tensorflow-gpu==2.4.3

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