Skip to content
OpenAdvisories
Medium · 5.5 CVE-2022-29209 BIT-tensorflow-2022-29209EUVD-2022-3688GHSA-f4rr-5m7v-wxcwPYSEC-2026-3167PYSEC-2026-3315PYSEC-2026-986

Type confusion leading to `CHECK`-failure based denial of service in TensorFlow

Published May 20, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the macros that TensorFlow uses for writing assertions (e.g., `CHECK_LT`, `CHECK_GT`, etc.) have an incorrect logic when comparing `size_t` and `int` values. Due to type conversion rules, several of the macros would trigger incorrectly. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow < 2.6.4, >= 2.7.0rc0, < 2.7.2, >= 2.8.0rc0, < 2.8.1, >= 2.9.0rc0, < 2.9.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow < 2.6.4 2.6.4 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow >= 2.7.0, < 2.7.2 2.7.2 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow >= 2.8.0, < 2.8.1 2.8.1 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-3167
PyPI tensorflow-cpu < 2.6.4 2.6.4 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow-cpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow-cpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow-cpu < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-3315
PyPI tensorflow-gpu < 2.6.4 2.6.4 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow-gpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow-gpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-f4rr-5m7v-wxcw
PyPI tensorflow-gpu < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-986

References