CVE-2021-37637

Source
https://cve.org/CVERecord?id=CVE-2021-37637
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37637.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-37637
Aliases
Downstream
Related
Published
2021-08-12T19:15:08.500Z
Modified
2026-03-13T22:01:02.354315Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. It is possible to trigger a null pointer dereference in TensorFlow by passing an invalid input to tf.raw_ops.CompressElement. The implementation was accessing the size of a buffer obtained from the return of a separate function call before validating that said buffer is valid. We have patched the issue in GitHub commit 5dc7f6981fdaf74c8c5be41f393df705841fb7c5. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.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
Introduced
Fixed
Introduced
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "2.3.0"
        },
        {
            "fixed": "2.3.4"
        },
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.5.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc2"
        }
    ]
}

Database specific

vanir_signatures
[
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "tensorflow/core/data/compression_utils.cc",
            "function": "UncompressElement"
        },
        "id": "CVE-2021-37637-b42e15b5",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/5dc7f6981fdaf74c8c5be41f393df705841fb7c5",
        "digest": {
            "function_hash": "137931854550405161528544638134208835898",
            "length": 1941.0
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "tensorflow/core/data/compression_utils.cc"
        },
        "id": "CVE-2021-37637-e468b508",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/5dc7f6981fdaf74c8c5be41f393df705841fb7c5",
        "digest": {
            "line_hashes": [
                "155811647348132697875257155353817840896",
                "29301763290559781150184179758600632883",
                "139228984487199408182204703155699225819",
                "65823337297204297282917261006243857817",
                "98033197779753073313066964978903926342",
                "290474350075359965277013031518091045703",
                "273307327619283545885684299955129326251",
                "123255959886306688300463438858209832039",
                "175099860407286281148010522997534530519",
                "153886843222653248768705877229445976842",
                "215027802501799811871507122768290225446",
                "229104654681816462116137815417089877087",
                "213439895691692502644280499555835205043",
                "77286629211646651695591298099974281090"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "tensorflow/core/data/compression_utils.cc",
            "function": "CompressElement"
        },
        "id": "CVE-2021-37637-f0fd6a45",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/5dc7f6981fdaf74c8c5be41f393df705841fb7c5",
        "digest": {
            "function_hash": "40841816946214923196660281970625815163",
            "length": 1413.0
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37637.json"