CVE-2021-41217

Source
https://cve.org/CVERecord?id=CVE-2021-41217
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41217.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41217
Aliases
Downstream
Related
Published
2021-11-05T21:15:09.073Z
Modified
2026-04-11T18:45:26.436905Z
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 open source platform for machine learning. In affected versions the process of building the control flow graph for a TensorFlow model is vulnerable to a null pointer exception when nodes that should be paired are not. This occurs because the code assumes that the first node in the pairing (e.g., an Enter node) always exists when encountering the second node (e.g., an Exit node). When this is not the case, parent is nullptr so dereferencing it causes a crash. 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
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.4.4"
        },
        {
            "introduced": "2.5.0"
        },
        {
            "fixed": "2.5.2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0"
        }
    ]
}

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.0-rc0
v2.4.0-rc1
v2.4.0-rc2
v2.4.0-rc3
v2.4.0-rc4
v2.4.1
v2.4.2
v2.4.3
v2.5.0
v2.5.1
v2.6.0
v2.6.0-rc0
v2.6.0-rc1
v2.6.0-rc2

Database specific

vanir_signatures_modified
"2026-04-11T18:45:26Z"
vanir_signatures
[
    {
        "deprecated": false,
        "target": {
            "file": "tensorflow/core/common_runtime/immutable_executor_state.cc",
            "function": "ImmutableExecutorState::BuildControlFlowInfo"
        },
        "id": "CVE-2021-41217-ad00d21c",
        "signature_type": "Function",
        "source": "https://github.com/tensorflow/tensorflow/commit/05cbebd3c6bb8f517a158b0155debb8df79017ff",
        "signature_version": "v1",
        "digest": {
            "function_hash": "295362213688066419463799269611666313553",
            "length": 1283.0
        }
    },
    {
        "deprecated": false,
        "target": {
            "file": "tensorflow/core/common_runtime/immutable_executor_state.cc"
        },
        "id": "CVE-2021-41217-b11902a0",
        "signature_type": "Line",
        "source": "https://github.com/tensorflow/tensorflow/commit/05cbebd3c6bb8f517a158b0155debb8df79017ff",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "145219822521514875232238984124692025669",
                "32714932123573688432704866275230740445",
                "160300498814128129796967819281835464741",
                "237573650516263254730431445034248750478"
            ],
            "threshold": 0.9
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41217.json"