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