CVE-2021-29590

Source
https://cve.org/CVERecord?id=CVE-2021-29590
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29590.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29590
Aliases
Related
Published
2021-05-14T20:15:14.817Z
Modified
2026-02-13T02:29:17.319470Z
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. The implementations of the Minimum and Maximum TFLite operators can be used to read data outside of bounds of heap allocated objects, if any of the two input tensor arguments are empty. This is because the broadcasting implementation(https://github.com/tensorflow/tensorflow/blob/0d45ea1ca641b21b73bcf9c00e0179cda284e7e7/tensorflow/lite/kernels/internal/reference/maximum_minimum.h#L52-L56) indexes in both tensors with the same index but does not validate that the index is within bounds. 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-29590.json"
vanir_signatures
[
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/953f28dca13c92839ba389c055587cfe6c723578",
        "digest": {
            "function_hash": "143412123912455264663608809151831093344",
            "length": 958.0
        },
        "id": "CVE-2021-29590-08b94427",
        "deprecated": false,
        "target": {
            "file": "tensorflow/lite/kernels/maximum_minimum.cc",
            "function": "Eval"
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/953f28dca13c92839ba389c055587cfe6c723578",
        "digest": {
            "line_hashes": [
                "39244024713851153351262884514975860863",
                "224418735901351779264656680599679941748",
                "44339197692612372189136787257550184650",
                "138381670592687995144185521708626781965",
                "72788690512051041611674551682146583917",
                "279750234690175654019368978465250324299",
                "194881455884626535768423190186140899505",
                "98430208511938845301117750859567673010",
                "182429477980018974440910036493196425000",
                "160288132734454143094912329524102652100",
                "90541029483050202489981472606865318918",
                "257258417156141188088118956415911511438",
                "216093153087568857212274175128589751237",
                "197181921748731750942888662726553906421",
                "311871849290014078600613550940633406866",
                "317442913911818280385321933765808819907",
                "164172749325866949936440478037839185851",
                "126460276190493712690364568101209049238",
                "325980224761891105666686415461085429438",
                "125117740751978891254930233132854482763",
                "242918789214341178317955391420328224488",
                "281137148844844488730518216947169012293",
                "66240646413582546969384995263104636293",
                "161016618355986117801888397858478605319",
                "330670412889800202072117640382251010524",
                "81493701324848453097787181373407214223",
                "143962493487342097639722869316406900456",
                "126763964812436759535330943396989401255",
                "128038701972131308597646962193754022402",
                "21441018988888641118882625680859000107",
                "179891618319963547923629871749153938684",
                "194723390917787130513253012618565048323"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-29590-0e6815b7",
        "deprecated": false,
        "target": {
            "file": "tensorflow/lite/kernels/maximum_minimum.cc"
        }
    }
]