Skip to content
OpenAdvisories
Medium · 5.9 CVE-2022-35934 BIT-tensorflow-2022-35934EUVD-2022-6788GHSA-f4w6-h4f5-wx45PYSEC-2026-3168PYSEC-2026-3316PYSEC-2026-987

`CHECK` failure in tf.reshape in Tensorflow

Published Sep 16, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

TensorFlow is an open source platform for machine learning. The implementation of tf.reshape op in TensorFlow is vulnerable to a denial of service via CHECK-failure (assertion failure) caused by overflowing the number of elements in a tensor. This issue has been patched in GitHub commit 61f0f9b94df8c0411f0ad0ecc2fec2d3f3c33555. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow < 2.7.2, >= 2.8.0, < 2.8.1, >= 2.9.0, < 2.9.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow < 2.7.2 2.7.2 GHSA-f4w6-h4f5-wx45
PyPI tensorflow >= 2.8.0, < 2.8.1 2.8.1 GHSA-f4w6-h4f5-wx45
PyPI tensorflow >= 2.9.0, < 2.9.1 2.9.1 GHSA-f4w6-h4f5-wx45
PyPI tensorflow < 2.7.2 · >= 2.8.0, < 2.8.1 · >= 2.9.0, < 2.9.1 2.7.2, 2.8.1, 2.9.1 PYSEC-2026-3168
PyPI tensorflow-cpu < 2.7.2 2.7.2 GHSA-f4w6-h4f5-wx45
PyPI tensorflow-cpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-f4w6-h4f5-wx45
PyPI tensorflow-cpu >= 2.9.0, < 2.9.1 2.9.1 GHSA-f4w6-h4f5-wx45
PyPI tensorflow-cpu < 2.7.2 · >= 2.8.0, < 2.8.1 · >= 2.9.0, < 2.9.1 2.7.2, 2.8.1, 2.9.1 PYSEC-2026-3316
PyPI tensorflow-gpu < 2.7.2 2.7.2 GHSA-f4w6-h4f5-wx45
PyPI tensorflow-gpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-f4w6-h4f5-wx45
PyPI tensorflow-gpu >= 2.9.0, < 2.9.1 2.9.1 GHSA-f4w6-h4f5-wx45
PyPI tensorflow-gpu < 2.7.2 · >= 2.8.0, < 2.8.1 · >= 2.9.0, < 2.9.1 2.7.2, 2.8.1, 2.9.1 PYSEC-2026-987

References