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.
{ "vanir_signatures": [ { "digest": { "threshold": 0.9, "line_hashes": [ "247783404680361708437325726329464678994", "1005590806467546794009971177375453934", "193675705274112267247089066130345307749", "57213901490026864526435380742068414829", "68084122760472468246441034132885363283", "252852242596897741054770007470179062159", "45157262254270421180038828280834683304", "52535804439167373069539820630268281484", "280934787098348347250678020676998889025", "248765645295846010866718304492184056873", "229281838097421501092479239343947475832", "70000862094958528855243894599012906032" ] }, "signature_version": "v1", "signature_type": "Line", "source": "https://github.com/tensorflow/tensorflow/commit/e57fd691c7b0fd00ea3bfe43444f30c1969748b5", "id": "CVE-2022-29211-e89f095d", "deprecated": false, "target": { "file": "tensorflow/core/kernels/histogram_op.cc" } } ] }