CVE-2022-21738

Source
https://cve.org/CVERecord?id=CVE-2022-21738
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21738.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21738
Aliases
Downstream
Related
Published
2022-02-03T13:19:05Z
Modified
2026-03-11T00:02:38.392357Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Integer overflow leading to crash in Tensorflow
Details

Tensorflow is an Open Source Machine Learning Framework. The implementation of SparseCountSparseOutput can be made to crash a TensorFlow process by an integer overflow whose result is then used in a memory allocation. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21738.json",
    "cna_assigner": "GitHub_M"
}
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
Last affected
Introduced
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.5.2"
        },
        {
            "introduced": "2.6.0"
        },
        {
            "last_affected": "2.6.2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.7.0"
        }
    ]
}

Affected versions

v2.*
v2.6.0
v2.6.1
v2.6.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21738.json"
vanir_signatures
[
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "102417565099319367189185037528216540679",
                "204942859937027731655983536670436881639",
                "169642539665877660881025837345411774466",
                "93763626335026654684832428685045776281",
                "101850066334314777733279061757939408629",
                "147391814729453972931780861024639487810",
                "219510766306151242136605382574495058240",
                "230385911434461496540343780302573383681"
            ]
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/6f4d3e8139ec724dbbcb40505891c81dd1052c4a",
        "signature_type": "Line",
        "id": "CVE-2022-21738-9aaff9cc",
        "target": {
            "file": "tensorflow/core/kernels/count_ops.cc"
        }
    }
]