CVE-2021-41226

Source
https://cve.org/CVERecord?id=CVE-2021-41226
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41226.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41226
Aliases
Downstream
Related
Published
2021-11-05T21:15:09.327Z
Modified
2026-04-11T18:45:27.838556Z
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 open source platform for machine learning. In affected versions the implementation of SparseBinCount is vulnerable to a heap OOB access. This is because of missing validation between the elements of the values argument and the shape of the sparse output. 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": "0"
        },
        {
            "fixed": "2.4.4"
        },
        {
            "introduced": "2.5.0"
        },
        {
            "fixed": "2.5.2"
        },
        {
            "introduced": "2.6.0"
        },
        {
            "fixed": "2.6.1"
        }
    ]
}

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41226.json"
vanir_signatures_modified
"2026-04-11T18:45:27Z"
vanir_signatures
[
    {
        "source": "https://github.com/tensorflow/tensorflow/commit/f410212e373eb2aec4c9e60bf3702eba99a38aba",
        "signature_type": "Line",
        "id": "CVE-2021-41226-e20385d0",
        "target": {
            "file": "tensorflow/core/kernels/bincount_op.cc"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "323502896564760348770414956888250493590",
                "167026848322535836829715194952420666030",
                "104944731889702888439368542079715759939",
                "206208899676008031936429978061193038136"
            ]
        },
        "signature_version": "v1",
        "deprecated": false
    }
]