Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.5

CVE-2022-29211: TensorFlow may crash when histogram called with NaN values

CVE-2022-29211 · published 4 years ago
Summary

TensorFlow versions prior to the latest patches can stop working (crash) if the tf.histogram_fixed_width function receives a data value that is not a number (NaN). The crash happens only on CPU processing and can disrupt any machine‑learning job that uses this function. Updating TensorFlow to the newest release eliminates the problem.

What to do
  • Update google inc. tensorflow to version 2.6.4.
  • Update google inc. tensorflow to version 2.7.2.
  • Update google inc. tensorflow to version 2.8.1.
  • Update google inc. tensorflow-cpu to version 2.6.4.
  • Update google inc. tensorflow-cpu to version 2.7.2.
  • Update google inc. tensorflow-cpu to version 2.8.1.
  • Update google tensorflow-gpu to version 2.6.4.
  • Update google tensorflow-gpu to version 2.7.2.
  • Update google tensorflow-gpu to version 2.8.1.
Affected software
Ecosystem VendorProductAffected versions
pip google inc. tensorflow < 2.6.4
>= 2.7.0, < 2.7.2
>= 2.8.0, < 2.8.1
Fix: upgrade to 2.6.4
pip google inc. tensorflow-cpu < 2.6.4
>= 2.7.0, < 2.7.2
>= 2.8.0, < 2.8.1
Fix: upgrade to 2.6.4
pip google tensorflow-gpu < 2.6.4
>= 2.7.0, < 2.7.2
>= 2.8.0, < 2.8.1
Fix: upgrade to 2.6.4
– google tensorflow < 2.6.4
>= 2.7.0, < 2.7.2
2.7.0
2.8.0
2.9.0
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
Original advisory text
Segfault in TensorFlow if `tf.histogram_fixed_width` is called with NaN values
TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implementation of `tf.histogram_fixed_width` is vulnerable to a crash when the values array contain `Not a Number` (`NaN`) elements. The implementation assumes that all floating point operations are defined and then converts a floating point result to an integer index. If `values` contains `NaN` then the result of the division is still `NaN` and the cast to `int32` would result in a crash. This only occurs on the CPU implementation. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
5.5 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-20Improper Input Validation
Timeline
Published20 May 2022
Updated4 Nov 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta