CVE-2021-41215

Source
https://cve.org/CVERecord?id=CVE-2021-41215
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41215.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41215
Aliases
Downstream
Related
Published
2021-11-05T21:15:09Z
Modified
2026-08-07T17:02:52Z
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 shape inference code for DeserializeSparse can trigger a null pointer dereference. This is because the shape inference function assumes that the serialize_sparse tensor is a tensor with positive rank (and having 3 as the last dimension). 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
Show details
{
    "cpe": [
        "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.6.0:*:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.4.4"
        },
        {
            "introduced": "2.5.0"
        },
        {
            "fixed": "2.5.2"
        },
        {
            "introduced": "2.6.0"
        },
        {
            "last_affected": "2.6.0"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

0.*
0.5.0
0.6.0
2.*
2.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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41215.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "325222962699495185038324433408192320387",
                "135717973706146516842869404431662552576",
                "173745391061575972182160269700888804397",
                "260399642956101948539994592885380092829",
                "163510374096494953302881300139892006138",
                "316946323388347678857337301130265990245"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-41215-0d794c4e",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/d3738dd70f1c9ceb547258cbb82d853da8771850",
        "target": {
            "file": "tensorflow/core/ops/sparse_ops.cc"
        }
    }
]
vanir_signatures_modified
"2026-08-07T17:02:52Z"