5.5medium
Core dump when loading TFLite models with quantization in TensorFlow
- Severity
- 5.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 17% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-8wwm-6264-x792BIT-TENSORFLOW-2022-29212PYSEC-2026-3141PYSEC-2026-3299PYSEC-2026-972
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
| Product or package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | < 2.6.4, >= 2.7.0rc0, < 2.7.2, >= 2.8.0rc0, < 2.8.1, >= 2.9.0rc0, < 2.9.0 | CVE List |
| tensorflow (PyPI) | before 2.6.4, from 2.7.0 before 2.7.2, from 2.8.0 before 2.8.1 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-cpu (PyPI) | before 2.6.4, from 2.7.0 before 2.7.2, from 2.8.0 before 2.8.1 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-gpu (PyPI) | before 2.6.4, from 2.7.0 before 2.7.2, from 2.8.0 before 2.8.1 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | before 2.6.4, from 2.7.0 before 2.7.2, 2.7.0, 2.8.0, 2.9.0 | NVD |
| tensorflow (Bitnami) | before 2.6.4, from 2.7.0 before 2.7.2, from 2.8.0 before 2.8.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.1low CVSS:2.0 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
| PyPA Advisory Database | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
We have patched the issue in GitHub commit a989426ee1346693cc015792f11d715f6944f2b8.
The fix will be included in TensorFlow 2.9.0. We will also cherrypick this commit on TensorFlow 2.8.1, TensorFlow 2.7.2, and TensorFlow 2.6.4, as these are also affected and still in supported range.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported externally via a GitHub issue.
NVD (es)
TensorFlow es una plataforma de código abierto para el aprendizaje automático. En versiones anteriores a 2.9.0, 2.8.1, 2.7.2 y 2.6.4, algunos modelos TFLite creados con el convertidor de modelos TFLite eran bloqueados cuando eran cargados en el intérprete TFLite. El culpable es que durante la cuantificación la escala de los valores podía ser mayor que 1 pero el código siempre asumía una escala de subunidades. Así, como el código llamaba a "QuantizeMultiplierSmallerThanOneExp", la aserción "TFLITE_CHECK_LT" era disparada y abortaba el proceso. Las versiones 2.9.0, 2.8.1, 2.7.2 y 2.6.4 contienen un parche para este problema
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-29212 changed 2025-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8wwm-6264-x792 changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2022-29212 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3141 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-3299 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-972 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2022-29212 changed 2026-09-08 | Apache-2.0 |