CVE-2021-29552

Source
https://cve.org/CVERecord?id=CVE-2021-29552
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29552.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29552
Aliases
Related
Published
2021-05-14T20:15:13.070Z
Modified
2026-02-03T07:24:32.632812Z
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
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a denial of service by controlling the values of num_segments tensor argument for UnsortedSegmentJoin. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/a2a607db15c7cd01d754d37e5448d72a13491bdb/tensorflow/core/kernels/unsortedsegmentjoin_op.cc#L92-L93) assumes that the num_segments tensor is a valid scalar. Since the tensor is empty the CHECK involved in .scalar<T>()() that checks that the number of elements is exactly 1 will be invalidated and this would result in process termination. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

References

Affected packages

Git / github.com/tensorflow/tensorflow

Database specific

vanir_signatures
[
    {
        "target": {
            "file": "tensorflow/core/kernels/unsorted_segment_join_op.cc"
        },
        "id": "CVE-2021-29552-29d53271",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "272225325228288520103092437836008842616",
                "276678313277216831763772173029214708841",
                "153308924212259677696164485561759050311",
                "40951644463068280896283152910792507148"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/tensorflow/tensorflow/commit/704866eabe03a9aeda044ec91a8d0c83fc1ebdbe",
        "signature_version": "v1"
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29552.json"