CVE-2022-29211

Source
https://cve.org/CVERecord?id=CVE-2022-29211
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29211.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-29211
Aliases
Published
2022-05-20T23:20:15Z
Modified
2026-07-22T02:24:29.110060Z
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
Segfault in TensorFlow if `tf.histogram_fixed_width` is called with NaN values
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.histogram_fixed_width is vulnerable to a crash when the values array contain Not a Number (NaN) elements. The implementation assumes that all floating point operations are defined and then converts a floating point result to an integer index. If values contains NaN then the result of the division is still NaN and the cast to int32 would result in a crash. This only occurs on the CPU implementation. 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-29211.json",
    "cwe_ids": [
        "CWE-20"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Database specific
{
    "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"
        }
    ],
    "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:*:*:*:*:*:*"
    ]
}

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

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29211.json"
vanir_signatures_modified
"2026-07-22T02:24:29Z"
vanir_signatures
[
    {
        "digest": {
            "line_hashes": [
                "247783404680361708437325726329464678994",
                "1005590806467546794009971177375453934",
                "193675705274112267247089066130345307749",
                "57213901490026864526435380742068414829",
                "68084122760472468246441034132885363283",
                "252852242596897741054770007470179062159",
                "45157262254270421180038828280834683304",
                "52535804439167373069539820630268281484",
                "280934787098348347250678020676998889025",
                "248765645295846010866718304492184056873",
                "229281838097421501092479239343947475832",
                "70000862094958528855243894599012906032"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-29211-e89f095d",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/e57fd691c7b0fd00ea3bfe43444f30c1969748b5",
        "signature_type": "Line",
        "target": {
            "file": "tensorflow/core/kernels/histogram_op.cc"
        }
    }
]