Skip to content
OpenAdvisories
Medium · 6.5 CVE-2022-23572 BIT-tensorflow-2022-23572EUVD-2022-0320GHSA-rww7-2gpw-fv6jPYSEC-2022-136PYSEC-2022-81PYSEC-2026-3241

Crash when type cannot be specialized in Tensorflow

Published Feb 4, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

Tensorflow is an Open Source Machine Learning Framework. Under certain scenarios, TensorFlow can fail to specialize a type during shape inference. This case is covered by the `DCHECK` function however, `DCHECK` is a no-op in production builds and an assertion failure in debug builds. In the first case execution proceeds to the `ValueOrDie` line. This results in an assertion failure as `ret` contains an error `Status`, not a value. In the second case we also get a crash due to the assertion failure. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, and TensorFlow 2.6.3, as these are also affected and still in supported range.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow >= 2.7.0, < 2.7.1, >= 2.6.0, < 2.6.3, < 2.5.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow < 2.5.3 2.5.3 GHSA-rww7-2gpw-fv6j
PyPI tensorflow >= 2.6.0, < 2.6.3 2.6.3 GHSA-rww7-2gpw-fv6j
PyPI tensorflow >= 2.7.0, < 2.7.1 2.7.1 GHSA-rww7-2gpw-fv6j
PyPI tensorflow < 2.5.3 · >= 2.6.0, < 2.6.3 · >= 2.7.0, < 2.7.1 2.5.3, 2.6.3, 2.7.1 PYSEC-2026-3241
PyPI tensorflow-cpu < 2.5.3 2.5.3 GHSA-rww7-2gpw-fv6j
PyPI tensorflow-cpu >= 2.6.0, < 2.6.3 2.6.3 GHSA-rww7-2gpw-fv6j
PyPI tensorflow-cpu >= 2.7.0, < 2.7.1 2.7.1 GHSA-rww7-2gpw-fv6j
PyPI tensorflow-cpu < 2.5.3 · >= 2.6.0, < 2.6.3 2.5.3, 2.6.3 PYSEC-2022-81
PyPI tensorflow-gpu < 2.5.3 2.5.3 GHSA-rww7-2gpw-fv6j
PyPI tensorflow-gpu >= 2.6.0, < 2.6.3 2.6.3 GHSA-rww7-2gpw-fv6j
PyPI tensorflow-gpu >= 2.7.0, < 2.7.1 2.7.1 GHSA-rww7-2gpw-fv6j
PyPI tensorflow-gpu < 2.5.3 · >= 2.6.0, < 2.6.3 2.5.3, 2.6.3 PYSEC-2022-136

References