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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29211.json",
"cwe_ids": [
"CWE-20"
],
"cna_assigner": "GitHub_M"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.6.4"
},
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.2"
},
{
"introduced": "2.7.0-rc0"
},
{
"last_affected": "2.7.0-rc0"
},
{
"introduced": "2.7.0-rc1"
},
{
"last_affected": "2.7.0-rc1"
},
{
"introduced": "2.8.0-NA"
},
{
"last_affected": "2.8.0-NA"
},
{
"introduced": "2.8.0-rc0"
},
{
"last_affected": "2.8.0-rc0"
},
{
"introduced": "2.8.0-rc1"
},
{
"last_affected": "2.8.0-rc1"
},
{
"introduced": "2.9.0-rc0"
},
{
"last_affected": "2.9.0-rc0"
},
{
"introduced": "2.9.0-rc1"
},
{
"last_affected": "2.9.0-rc1"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
],
"cpe": [
"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.8.0:-:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.8.0:rc0:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.8.0:rc1:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.9.0:rc0:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.9.0:rc1:*:*:*:*:*:*"
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29211.json"
"2026-07-22T02:24:29Z"
[
{
"digest": {
"line_hashes": [
"247783404680361708437325726329464678994",
"1005590806467546794009971177375453934",
"193675705274112267247089066130345307749",
"57213901490026864526435380742068414829",
"68084122760472468246441034132885363283",
"252852242596897741054770007470179062159",
"45157262254270421180038828280834683304",
"52535804439167373069539820630268281484",
"280934787098348347250678020676998889025",
"248765645295846010866718304492184056873",
"229281838097421501092479239343947475832",
"70000862094958528855243894599012906032"
],
"threshold": 0.9
},
"id": "CVE-2022-29211-e89f095d",
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/e57fd691c7b0fd00ea3bfe43444f30c1969748b5",
"signature_type": "Line",
"target": {
"file": "tensorflow/core/kernels/histogram_op.cc"
}
}
]