Skip to content
OpenAdvisories
Medium · 5.5 CVE-2022-29212 BIT-tensorflow-2022-29212EUVD-2022-3254GHSA-8wwm-6264-x792PYSEC-2026-3141PYSEC-2026-3299PYSEC-2026-972

Core dump when loading TFLite models with quantization 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, certain TFLite models that were created using TFLite model converter would crash when loaded in the TFLite interpreter. The culprit is that during quantization the scale of values could be greater than 1 but code was always assuming sub-unit scaling. Thus, since code was calling `QuantizeMultiplierSmallerThanOneExp`, the `TFLITE_CHECK_LT` assertion would trigger and abort the process. 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-8wwm-6264-x792
PyPI tensorflow >= 2.7.0, < 2.7.2 2.7.2 GHSA-8wwm-6264-x792
PyPI tensorflow >= 2.8.0, < 2.8.1 2.8.1 GHSA-8wwm-6264-x792
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-3141
PyPI tensorflow-cpu < 2.6.4 2.6.4 GHSA-8wwm-6264-x792
PyPI tensorflow-cpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-8wwm-6264-x792
PyPI tensorflow-cpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-8wwm-6264-x792
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-3299
PyPI tensorflow-gpu < 2.6.4 2.6.4 GHSA-8wwm-6264-x792
PyPI tensorflow-gpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-8wwm-6264-x792
PyPI tensorflow-gpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-8wwm-6264-x792
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-972

References