Skip to main content
← All vulnerabilities
CVE-2022-41911PYSEC-2026-3222BIT-TENSORFLOW-2022-41911GHSA-PF36-R9C6-H97JPYSEC-2026-1954PYSEC-2026-939

Invalid char to bool conversion when printing a tensor in Tensorflow

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

Summary

TensorFlow is an open source platform for machine learning. When printing a tensor, we get it's data as a `const char*` array (since that's the underlying storage) and then we typecast it to the element type. However, conversions from `char` to `bool` are undefined if the `char` is not `0` or `1`, so sanitizers/fuzzers will crash. The issue has been patched in GitHub commit `1be74370327`. The fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.10.1, TensorFlow 2.9.3, and TensorFlow 2.8.4, 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

  • tensorflow tensorflow

    From 2.10.0 · fixed in 2.10.1; From 2.9.0 · fixed in 2.9.3; fixed in 2.8.4

  • tensorflowPyPI

    fixed in 2.8.4; From 2.9.0 · fixed in 2.9.3; From 2.10.0 · fixed in 2.10.1

  • tensorflow-cpuPyPI

    fixed in 2.8.4; From 2.9.0 · fixed in 2.9.3; From 2.10.0 · fixed in 2.10.1

  • tensorflowPyPI

    fixed in 2.8.4

  • tensorflow-cpuPyPI

    From 2.9.0 · fixed in 2.9.3

  • tensorflow-gpuPyPI

    From 2.10.0 · fixed in 2.10.1

  • tensorflowPyPI

    From 2.9.0 · fixed in 2.9.3

  • tensorflowPyPI

    From 2.10.0 · fixed in 2.10.1

  • tensorflow-cpuPyPI

    fixed in 2.8.4

  • tensorflow-gpuPyPI

    fixed in 2.8.4

  • tensorflow-gpuPyPI

    From 2.9.0 · fixed in 2.9.3

  • tensorflow-cpuPyPI

    From 2.10.0 · fixed in 2.10.1

  • tensorflow-gpuPyPI

    fixed in 2.8.4; From 2.9.0 · fixed in 2.9.3; From 2.10.0 · fixed in 2.10.1

References 3

GitHub · tensorflow/tensorflow