CVE-2022-29206

Source
https://cve.org/CVERecord?id=CVE-2022-29206
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29206.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-29206
Aliases
Published
2022-05-20T22:15:13Z
Modified
2026-07-13T16:43:38.746370447Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Missing validation results in undefined behavior in `SparseTensorDenseAdd` in TensorFlow
Details

TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implementation of tf.raw_ops.SparseTensorDenseAdd does not fully validate the input arguments. In this case, a reference gets bound to a nullptr during kernel execution. This is undefined behavior. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29206.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-20",
        "CWE-476"
    ]
}
References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Database specific
{
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ],
    "cpe": [
        "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.8.0:-:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.8.0:rc0:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.8.0:rc1:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.9.0:rc0:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.9.0:rc1:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.6.4"
        },
        {
            "introduced": "2.7.0"
        },
        {
            "fixed": "2.7.2"
        },
        {
            "introduced": "2.7.0-rc0"
        },
        {
            "last_affected": "2.7.0-rc0"
        },
        {
            "introduced": "2.7.0-rc1"
        },
        {
            "last_affected": "2.7.0-rc1"
        },
        {
            "introduced": "2.8.0-NA"
        },
        {
            "last_affected": "2.8.0-NA"
        },
        {
            "introduced": "2.8.0-rc0"
        },
        {
            "last_affected": "2.8.0-rc0"
        },
        {
            "introduced": "2.8.0-rc1"
        },
        {
            "last_affected": "2.8.0-rc1"
        },
        {
            "introduced": "2.9.0-rc0"
        },
        {
            "last_affected": "2.9.0-rc0"
        },
        {
            "introduced": "2.9.0-rc1"
        },
        {
            "last_affected": "2.9.0-rc1"
        }
    ]
}

Affected versions

0.*
0.5.0
0.6.0
2.*
2.7.0-rc0
2.7.0-rc1
2.8.0-NA
2.8.0-rc0
2.8.0-rc1
2.9.0-rc0
2.9.0-rc1
v1.*
v1.1.0-rc1
v1.1.0-rc2
v1.12.1
v1.6.0-rc1
v1.9.0-rc2
v2.*
v2.6.0
v2.6.0-rc0
v2.6.0-rc1
v2.6.0-rc2
v2.6.1
v2.6.2
v2.6.3
v2.7.0
v2.7.1
v2.8.0
v2.8.0-rc0
v2.8.0-rc1
v2.9.0-rc0
v2.9.0-rc1
v2.9.0-rc2

Database specific

vanir_signatures_modified
"2026-07-09T04:31:42Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29206.json"
vanir_signatures
[
    {
        "target": {
            "file": "tensorflow/core/kernels/sparse_tensor_dense_add_op.cc"
        },
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "221493233268286537659827014320394668101",
                "82207426128829260309612597979246158047",
                "5277208957558550673337177709160487983",
                "151958456065648892737008559890577651035",
                "211311739560596991482515868738725512339",
                "219438528273262363439709378717835207052",
                "185504399491295674597981208618368545979",
                "175918897646274861063135720410660987565",
                "63726725965755184658985833465422142945",
                "261259081224229000059884329424767238589"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/tensorflow/tensorflow/commit/11ced8467eccad9c7cb94867708be8fa5c66c730",
        "deprecated": false,
        "id": "CVE-2022-29206-1555f923"
    },
    {
        "id": "CVE-2022-29206-c01e98b0",
        "digest": {
            "function_hash": "192647852517683153220242599385909362107",
            "length": 1253.0
        },
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/tensorflow/tensorflow/commit/11ced8467eccad9c7cb94867708be8fa5c66c730",
        "deprecated": false,
        "target": {
            "function": "ValidateInputs",
            "file": "tensorflow/core/kernels/sparse_tensor_dense_add_op.cc"
        }
    }
]