CVE-2022-23567

Source
https://cve.org/CVERecord?id=CVE-2022-23567
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23567.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-23567
Aliases
Downstream
Related
Published
2022-02-03T11:52:48Z
Modified
2026-03-14T11:34:42.587086Z
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 overflows in Tensorflow
Details

Tensorflow is an Open Source Machine Learning Framework. The implementations of Sparse*Cwise* ops are vulnerable to integer overflows. These can be used to trigger large allocations (so, OOM based denial of service) or CHECK-fails when building new TensorShape objects (so, assert failures based denial of service). We are missing some validation on the shapes of the input tensors as well as directly constructing a large TensorShape with user-provided dimensions. 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/23xxx/CVE-2022-23567.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
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-23567.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "file": "tensorflow/core/kernels/sparse_dense_binary_op_shared.cc"
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/1b54cadd19391b60b6fcccd8d076426f7221d5e8",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "329112339821655467234678885484446163172",
                "200917537200962798156464133499542451942",
                "93952804530195300973089191646651416559",
                "145692087782814623369253849019539369022",
                "71669275472443960695513657539295058767",
                "334193592098768275247851894876572980491",
                "97814909610001963506558513499513243074",
                "175253281997967339495909057590258430398",
                "25498415023939985336341872742274084360"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-23567-04c733cd",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "tensorflow/core/kernels/sparse_dense_binary_op_shared.cc"
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/e952a89b7026b98fe8cbe626514a93ed68b7c510",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "153645800540628556582481315125814443510",
                "285304630793407900581727599151875448621",
                "17971194195542786995024547036109717373",
                "147633526263460366104972120657428373450"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-23567-18b42616",
        "signature_type": "Line"
    }
]