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.raw_ops.UnsortedSegmentJoin does not fully validate the input arguments. This results in a CHECK-failure which can be used to trigger a denial of service attack. The code assumes num_segments is a scalar but there is no validation for this before accessing its value. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.
{
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29197.json",
"cwe_ids": [
"CWE-20"
]
}{
"cpe": [
"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.7.0:-:*:*:*:*:*:*",
"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: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:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.6.4"
},
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.2"
},
{
"introduced": "2.7.0-NA"
},
{
"last_affected": "2.7.0-NA"
},
{
"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-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"
]
}"2026-07-22T02:08:16Z"
[
{
"target": {
"file": "tensorflow/core/kernels/unsorted_segment_join_op.cc"
},
"id": "CVE-2022-29197-f09a37d4",
"digest": {
"line_hashes": [
"55500717327808866237607697274156619139",
"136683916953844256548644583323253890416",
"209342464687596159271925112184219903744",
"139402845272642927165056975613293908924"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/tensorflow/tensorflow/commit/13d38a07ce9143e044aa737cfd7bb759d0e9b400"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29197.json"