CVE-2022-21728

Source
https://cve.org/CVERecord?id=CVE-2022-21728
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21728.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21728
Aliases
Downstream
Related
Published
2022-02-03T10:55:55Z
Modified
2026-03-14T11:29:19.801453Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
Out of bounds read in Tensorflow
Details

Tensorflow is an Open Source Machine Learning Framework. The implementation of shape inference for ReverseSequence does not fully validate the value of batch_dim and can result in a heap OOB read. There is a check to make sure the value of batch_dim does not go over the rank of the input, but there is no check for negative values. Negative dimensions are allowed in some cases to mimic Python's negative indexing (i.e., indexing from the end of the array), however if the value is too negative then the implementation of Dim would access elements before the start of an array. 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
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21728.json"
}
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

vanir_signatures
[
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "298694235272975890307521840339612588278",
                "193562757557607400072708311809979925035",
                "247199806174756591337775390029876265780",
                "54788927836496362948243957546305521602",
                "231658794406887245295008859921834651885",
                "221218771590889650862490760714128487312",
                "220721515790262182712784505693558536284",
                "258322042591984558867121474411780353589"
            ]
        },
        "target": {
            "file": "tensorflow/core/ops/array_ops.cc"
        },
        "id": "CVE-2022-21728-a0f6c06a",
        "source": "https://github.com/tensorflow/tensorflow/commit/37c01fb5e25c3d80213060460196406c43d31995"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21728.json"