CVE-2022-35952

Source
https://cve.org/CVERecord?id=CVE-2022-35952
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35952.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-35952
Aliases
Downstream
Related
Published
2022-09-16T19:50:10Z
Modified
2026-08-12T13:01:24Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
`CHECK` failures in `UnbatchGradOp` in TensorFlow
Details

TensorFlow is an open source platform for machine learning. The UnbatchGradOp function takes an argument id that is assumed to be a scalar. A nonscalar id can trigger a CHECK failure and crash the program. It also requires its argument batch_index to contain three times the number of elements as indicated in its batch_index.dim_size(0). An incorrect batch_index can trigger a CHECK failure and crash the program. We have patched the issue in GitHub commit 5f945fc6409a3c1e90d6970c9292f805f6e6ddf2. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-617"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35952.json"
}
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:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.7.0"
        },
        {
            "fixed": "2.7.2"
        },
        {
            "introduced": "2.8.0"
        },
        {
            "fixed": "2.8.1"
        },
        {
            "introduced": "2.9.0"
        },
        {
            "fixed": "2.9.1"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v2.*
v2.7.0
v2.7.1
v2.8.0
v2.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35952.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "294662536314343045663265023047133999685",
                "319647698946457710165562543571584818114",
                "91909431081877583890578338191805620693",
                "118220053942518617372461120772498690152",
                "295819013639933603142016770533331337615",
                "157622746287825948027947547039478158923",
                "319705456211503732206642315826737210199",
                "289330732997058504914844551348769504313",
                "134125917565939423879633097631696821525"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-35952-5f905410",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/5f945fc6409a3c1e90d6970c9292f805f6e6ddf2",
        "target": {
            "file": "tensorflow/core/kernels/batch_kernels.cc"
        }
    }
]
vanir_signatures_modified
"2026-08-12T13:01:24Z"