CVE-2021-41225

Source
https://cve.org/CVERecord?id=CVE-2021-41225
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41225.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41225
Aliases
Downstream
Related
Published
2021-11-05T23:15:08.543Z
Modified
2026-04-11T18:45:28.411089Z
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 open source platform for machine learning. In affected versions TensorFlow's Grappler optimizer has a use of unitialized variable. If the train_nodes vector (obtained from the saved model that gets optimized) does not contain a Dequeue node, then dequeue_node is left unitialized. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.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
{
    "versions": [
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.4"
        },
        {
            "introduced": "2.5.0"
        },
        {
            "fixed": "2.5.2"
        },
        {
            "introduced": "2.6.0"
        },
        {
            "fixed": "2.6.1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.7.0-rc0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.7.0-rc1"
        }
    ]
}

Affected versions

0.*
0.5.0
0.6.0
v1.*
v1.1.0-rc1
v1.1.0-rc2
v1.12.1
v1.6.0-rc1
v1.9.0-rc2
v2.*
v2.4.0
v2.4.1
v2.4.2
v2.4.3
v2.5.0
v2.5.1
v2.6.0
v2.7.0-rc0
v2.7.0-rc1

Database specific

vanir_signatures_modified
"2026-04-11T18:45:28Z"
vanir_signatures
[
    {
        "id": "CVE-2021-41225-33c2f6b4",
        "target": {
            "file": "tensorflow/core/grappler/optimizers/auto_parallel.cc",
            "function": "AutoParallel::Initialize"
        },
        "deprecated": false,
        "digest": {
            "function_hash": "180610580969140927055067451882379134742",
            "length": 3704.0
        },
        "signature_type": "Function",
        "source": "https://github.com/tensorflow/tensorflow/commit/68867bf01239d9e1048f98cbad185bf4761bedd3",
        "signature_version": "v1"
    },
    {
        "id": "CVE-2021-41225-419239f3",
        "target": {
            "file": "tensorflow/core/grappler/optimizers/auto_parallel.cc"
        },
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "26340680737136471685494781048478165544",
                "200923769751318358354259941226017034130",
                "143145563203881069735105784434339384513",
                "129074365653674604154500076449681058460"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/tensorflow/tensorflow/commit/68867bf01239d9e1048f98cbad185bf4761bedd3",
        "signature_version": "v1"
    },
    {
        "id": "CVE-2021-41225-6fd54706",
        "target": {
            "file": "tensorflow/core/grappler/optimizers/auto_parallel_test.cc"
        },
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "264261961358461795946491763694796098193",
                "182181293155884076037897373433176665312",
                "108587633537507210242609878158511307392"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/tensorflow/tensorflow/commit/68867bf01239d9e1048f98cbad185bf4761bedd3",
        "signature_version": "v1"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41225.json"