Skip to content
OpenAdvisories
Medium · 6.5 CVE-2022-23557 BIT-tensorflow-2022-23557EUVD-2022-0305GHSA-gf2j-f278-xh4vPYSEC-2022-121PYSEC-2022-66PYSEC-2026-3188

Division by zero in TFLite

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

Description

Tensorflow is an Open Source Machine Learning Framework. An attacker can craft a TFLite model that would trigger a division by zero in `BiasAndClamp` implementation. There is no check that the `bias_size` is non zero. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.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-gf2j-f278-xh4v
PyPI tensorflow >= 2.6.0, < 2.6.3 2.6.3 GHSA-gf2j-f278-xh4v
PyPI tensorflow >= 2.7.0, < 2.7.1 2.7.1 GHSA-gf2j-f278-xh4v
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-3188
PyPI tensorflow-cpu < 2.5.3 2.5.3 GHSA-gf2j-f278-xh4v
PyPI tensorflow-cpu >= 2.6.0, < 2.6.3 2.6.3 GHSA-gf2j-f278-xh4v
PyPI tensorflow-cpu >= 2.7.0, < 2.7.1 2.7.1 GHSA-gf2j-f278-xh4v
PyPI tensorflow-cpu < 2.5.3 · >= 2.6.0, < 2.6.3 2.5.3, 2.6.3 PYSEC-2022-66
PyPI tensorflow-gpu < 2.5.3 2.5.3 GHSA-gf2j-f278-xh4v
PyPI tensorflow-gpu >= 2.6.0, < 2.6.3 2.6.3 GHSA-gf2j-f278-xh4v
PyPI tensorflow-gpu >= 2.7.0, < 2.7.1 2.7.1 GHSA-gf2j-f278-xh4v
PyPI tensorflow-gpu < 2.5.3 · >= 2.6.0, < 2.6.3 2.5.3, 2.6.3 PYSEC-2022-121

References