Skip to main content
← All vulnerabilities
CVE-2022-21732PYSEC-2026-3158BIT-TENSORFLOW-2022-21732GHSA-C582-C96P-R5CQPYSEC-2022-111PYSEC-2022-56

Memory exhaustion in Tensorflow

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

Summary

Tensorflow is an Open Source Machine Learning Framework. The implementation of `ThreadPoolHandle` can be used to trigger a denial of service attack by allocating too much memory. This is because the `num_threads` argument is only checked to not be negative, but there is no upper bound on its value. 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: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • tensorflowPyPI

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

  • 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

  • tensorflow-gpuPyPI

    fixed in 2.5.3; From 2.6.0 · fixed in 2.6.3

  • tensorflow-cpuPyPI

    fixed in 2.5.3; From 2.6.0 · fixed in 2.6.3

References 3

GitHub · tensorflow/tensorflow