Skip to main content
← All vulnerabilities
CVE-2022-21726PYSEC-2026-3082BIT-TENSORFLOW-2022-21726GHSA-23HM-7W47-XW72PYSEC-2022-105PYSEC-2022-50

Out of bounds read 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: poc
  • Automatable: no
  • Technical impact: partial

Summary

Tensorflow is an Open Source Machine Learning Framework. The implementation of `Dequantize` does not fully validate the value of `axis` and can result in heap OOB accesses. The `axis` argument can be `-1` (the default value for the optional argument) or any other positive value at most the number of dimensions of the input. Unfortunately, the upper bound is not checked and this results in reading past the end of the array containing the dimensions of the input tensor. 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

  • 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