CVE-2021-29558

Source
https://cve.org/CVERecord?id=CVE-2021-29558
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29558.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29558
Aliases
Related
Published
2021-05-14T20:15:13.290Z
Modified
2026-02-16T07:51:00.486154Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a heap buffer overflow in tf.raw_ops.SparseSplit. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/699bff5d961f0abfde8fa3f876e6d241681fbef8/tensorflow/core/util/sparse/sparse_tensor.h#L528-L530) accesses an array element based on a user controlled offset. 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

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events

Database specific

vanir_signatures
[
    {
        "id": "CVE-2021-29558-64538035",
        "signature_version": "v1",
        "digest": {
            "function_hash": "214375556340403537979185026199003347831",
            "length": 2503.0
        },
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/8ba6fa29cd8bf9cef9b718dc31c78c73081f5b31",
        "signature_type": "Function",
        "target": {
            "file": "tensorflow/core/util/sparse/sparse_tensor.h",
            "function": "SparseTensor::Split"
        }
    },
    {
        "id": "CVE-2021-29558-ba27ab98",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "279818617668798798477423995082659241335",
                "206755344413953338652130346008864127968",
                "205767767023798358840436458717917167136",
                "215022019207104171429559307174204363175"
            ]
        },
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/8ba6fa29cd8bf9cef9b718dc31c78c73081f5b31",
        "signature_type": "Line",
        "target": {
            "file": "tensorflow/core/util/sparse/sparse_tensor.h"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29558.json"