Skip to main content
← All vulnerabilities
CVE-2022-23558PYSEC-2022-122BIT-TENSORFLOW-2022-23558GHSA-9GWQ-6CWJ-47H3PYSEC-2022-67PYSEC-2026-3151

Integer overflow in TFLite array creation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.7.1, 2.6.3, 2.5.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

Tensorflow is an Open Source Machine Learning Framework. An attacker can craft a TFLite model that would cause an integer overflow in `TfLiteIntArrayCreate`. The `TfLiteIntArrayGetSizeInBytes` returns an `int` instead of a `size_t. An attacker can control model inputs such that `computed_size` overflows the size of `int` datatype. 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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • tensorflow tensorflow

    From 2.7.0 · fixed in 2.7.1; From 2.6.0 · fixed in 2.6.3; fixed in 2.5.3

  • tensorflow-gpuPyPI

    fixed in 2.5.3; From 2.6.0 · fixed in 2.6.3

  • tensorflowPyPI

    fixed in 2.5.3; From 2.6.0 · fixed in 2.6.3; From 2.7.0 · fixed in 2.7.1

  • tensorflow-cpuPyPI

    fixed in 2.5.3; From 2.6.0 · fixed in 2.6.3

  • tensorflowPyPI

    fixed in 2.5.3

  • tensorflowPyPI

    From 2.6.0 · fixed in 2.6.3

  • tensorflowPyPI

    From 2.7.0 · fixed in 2.7.1

  • tensorflow-cpuPyPI

    fixed in 2.5.3

  • tensorflow-cpuPyPI

    From 2.6.0 · fixed in 2.6.3

  • tensorflow-cpuPyPI

    From 2.7.0 · fixed in 2.7.1

  • tensorflow-gpuPyPI

    fixed in 2.5.3

  • tensorflow-gpuPyPI

    From 2.6.0 · fixed in 2.6.3

  • tensorflow-gpuPyPI

    From 2.7.0 · fixed in 2.7.1

References 4

GitHub · tensorflow/tensorflow