CVE-2021-29601

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

TensorFlow is an end-to-end open source platform for machine learning. The TFLite implementation of concatenation is vulnerable to an integer overflow issue(https://github.com/tensorflow/tensorflow/blob/7b7352a724b690b11bfaae2cd54bc3907daf6285/tensorflow/lite/kernels/concatenation.cc#L70-L76). An attacker can craft a model such that the dimensions of one of the concatenation input overflow the values of int. TFLite uses int to represent tensor dimensions, whereas TF uses int64. Hence, valid TF models can trigger an integer overflow when converted to TFLite format. 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-29601.json"
vanir_signatures
[
    {
        "id": "CVE-2021-29601-2cb7b0e1",
        "target": {
            "file": "tensorflow/lite/kernels/concatenation.cc"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/4253f96a58486ffe84b61c0415bb234a4632ee73",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "270328354001580644158255939010104897660",
                "126144932622272816413179299053186767405",
                "285612822588347990676082895346048351888",
                "243405372246689618305972587011202495540",
                "203316517393252275767607778871928988475",
                "132468779210192624988620305237185962030"
            ]
        },
        "signature_type": "Line"
    },
    {
        "id": "CVE-2021-29601-4fafff7d",
        "target": {
            "function": "Prepare",
            "file": "tensorflow/lite/kernels/concatenation.cc"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/4253f96a58486ffe84b61c0415bb234a4632ee73",
        "digest": {
            "function_hash": "168115308933411662923448136828670507585",
            "length": 2122.0
        },
        "signature_type": "Function"
    }
]