CVE-2021-29606

Source
https://cve.org/CVERecord?id=CVE-2021-29606
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29606.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29606
Aliases
Related
Published
2021-05-14T20:15:15.717Z
Modified
2026-02-16T07:52:52.671138Z
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. A specially crafted TFLite model could trigger an OOB read on heap in the TFLite implementation of Split_V(https://github.com/tensorflow/tensorflow/blob/c59c37e7b2d563967da813fa50fe20b21f4da683/tensorflow/lite/kernels/splitv.cc#L99). If axis_value is not a value between 0 and NumDimensions(input), then the SizeOfDimension function(https://github.com/tensorflow/tensorflow/blob/102b211d892f3abc14f845a72047809b39cc65ab/tensorflow/lite/kernels/kernelutil.h#L148-L150) will access data outside the bounds of the tensor shape array. 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/cve-osv-conversion/osv-output/CVE-2021-29606.json"
vanir_signatures
[
    {
        "id": "CVE-2021-29606-50ebcdc6",
        "target": {
            "function": "ResizeOutputTensors",
            "file": "tensorflow/lite/kernels/split_v.cc"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/ae2daeb45abfe2c6dda539cf8d0d6f653d3ef412",
        "digest": {
            "function_hash": "206380210953431095888779719762012554939",
            "length": 1470.0
        },
        "signature_type": "Function"
    },
    {
        "id": "CVE-2021-29606-d96abcee",
        "target": {
            "file": "tensorflow/lite/kernels/split_v.cc"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/ae2daeb45abfe2c6dda539cf8d0d6f653d3ef412",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "45898169669423750267424392833406228384",
                "6712841239536405657954402030311840401",
                "79102478584706521030820001261610501487"
            ]
        },
        "signature_type": "Line"
    }
]