Skip to content
MediumVulnerability

CVE-2022-29212: TensorFlow TFLite interpreter crash when loading certain quantized models

Identifier
CVE-2022-29212
Published
Record updated
View JSON
Affected
  • tensorflow < 2.6.4, fixed in 2.6.4, released May 16, 2022, 5 days before disclosure
  • tensorflow >= 2.7.0, < 2.7.2, fixed in 2.7.2, released May 16, 2022, 5 days before disclosure
  • tensorflow >= 2.8.0, < 2.8.1, fixed in 2.8.1, released May 16, 2022, 5 days before disclosure
  • and 6 more
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

TensorFlow versions before 2.9.0, 2.8.1, 2.7.2 and 2.6.4 are affected by CVE-2022-29212. TFLite models created with the TFLite model converter crash the process when loaded in the TFLite interpreter, because quantization can produce scale values greater than 1 while the code assumes sub-unit scaling. The resulting `TFLITE_CHECK_LT` assertion in `QuantizeMultiplierSmallerThanOneExp` aborts the process.

Mitigation

Fixed in 2.9.0, 2.8.1, 2.7.2 and 2.6.4, which contain a patch for this issue.