CVE-2022-29204

Source
https://cve.org/CVERecord?id=CVE-2022-29204
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29204.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-29204
Aliases
Published
2022-05-20T22:40:13Z
Modified
2026-10-28T10:28:46Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Missing validation causes denial of service in TensorFlow via `Conv3DBackpropFilterV2`
Details

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 positive scalar but there is no validation. Since this value is used to allocate the output tensor, a negative value would result in a CHECK-failure (assertion failure), as per TFSA-2021-198. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-191",
        "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29204.json"
}
References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "1.15.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": "20cb18724b0bf6c09071a3f53434c4eec53cc147"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "84563f265f28b3c36a15335c8b005d405260e943"
                }
            ],
            "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"
        }
    ]
}

Affected versions

2.*
2.7.0-rc0
2.7.0-rc1
2.8.0-NA
2.8.0-rc0
2.8.0-rc1
2.9.0-rc0
2.9.0-rc1
v2.*
v2.7.0
v2.7.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29204.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "272930406629566085188128909330015357564",
                "294142155783676115266854675390013935278",
                "70069975632083138714508615765652856310"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-29204-c19be0c3",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/84563f265f28b3c36a15335c8b005d405260e943",
        "target": {
            "file": "tensorflow/core/kernels/unsorted_segment_join_op.cc"
        }
    }
]
vanir_signatures_modified
"2026-10-28T10:28:46Z"