CVE-2021-29532

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

TensorFlow is an end-to-end open source platform for machine learning. An attacker can force accesses outside the bounds of heap allocated arrays by passing in invalid tensor values to tf.raw_ops.RaggedCross. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/efea03b38fb8d3b81762237dc85e579cc5fc6e87/tensorflow/core/kernels/raggedcrossop.cc#L456-L487) lacks validation for the user supplied arguments. Each of the above branches call a helper function after accessing array elements via a *_list[next_*] pattern, followed by incrementing the next_* index. However, as there is no validation that the next_* values are in the valid range for the corresponding *_list arrays, this results in heap OOB reads. 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

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29532.json"
vanir_signatures
[
    {
        "source": "https://github.com/tensorflow/tensorflow/commit/44b7f486c0143f68b56c34e2d01e146ee445134a",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "41923601570542091892861122558246015454",
                "185825093596051970055352567945976532463",
                "114041496570279427573156945057778240810",
                "282044368558234215517261715195642705420",
                "43473708984564396953017952267066164007",
                "336088900727250390219629758968654370496",
                "234046906352886307629515910872756944832",
                "245997460144130800998832894035311965975",
                "123443452042129516355772275987368747465",
                "337915393771193782114785400427025183020",
                "37883780838538775380773945674706809803",
                "31830206729498690941770142802820942632",
                "128008031022355263285195476410001788851",
                "12710113139687672892683974275252351637",
                "308678745473374905902006308322686428400",
                "233685582531156277925984620447865364228",
                "98446618186184040608556843355281796194",
                "180879606178087360783741868442104778748"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "target": {
            "file": "tensorflow/core/kernels/ragged_cross_op.cc"
        },
        "id": "CVE-2021-29532-0526ac73",
        "signature_version": "v1"
    }
]