CVE-2021-29572

Source
https://cve.org/CVERecord?id=CVE-2021-29572
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29572.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29572
Aliases
Related
Published
2021-05-14T20:15:13.927Z
Modified
2026-04-12T02:45:55.188216Z
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
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. The implementation of tf.raw_ops.SdcaOptimizer triggers undefined behavior due to dereferencing a null pointer. The implementation(https://github.com/tensorflow/tensorflow/blob/60a45c8b6192a4699f2e2709a2645a751d435cc3/tensorflow/core/kernels/sdcainternal.cc) does not validate that the user supplied arguments satisfy all constraints expected by the op(https://www.tensorflow.org/apidocs/python/tf/raw_ops/SdcaOptimizer). The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Database specific
{
    "cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
    "source": [
        "CPE_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.1.4"
        },
        {
            "introduced": "2.2.0"
        },
        {
            "fixed": "2.2.3"
        },
        {
            "introduced": "2.3.0"
        },
        {
            "fixed": "2.3.3"
        },
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.2"
        }
    ]
}

Affected versions

0.*
0.5.0
0.6.0
v1.*
v1.1.0-rc1
v1.1.0-rc2
v1.12.1
v1.6.0-rc1
v1.9.0-rc2
v2.*
v2.1.0
v2.1.0-rc0
v2.1.0-rc1
v2.1.0-rc2
v2.1.1
v2.1.2
v2.1.3
v2.2.0
v2.2.1
v2.2.2
v2.3.0
v2.3.1
v2.3.2
v2.4.0
v2.4.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29572.json"
vanir_signatures_modified
"2026-04-12T02:45:55Z"
vanir_signatures
[
    {
        "signature_type": "Line",
        "id": "CVE-2021-29572-b85724e3",
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "155574581372941160870565273953201785971",
                "255173495720506839222064058411702436280",
                "172838500643053924923895592029273860158",
                "17402336618818337339567621928639706554",
                "114372793750359455060305493892855536273",
                "74810858181488689393684916146068904521",
                "20022233786850908998631114137540878190",
                "299789574151120349670229151818029145234",
                "226836716700235207340692088318828603995",
                "79285550125257590422331895945290505858",
                "125400721681910813396742745562670200898",
                "187014542678624315034322042408201131006",
                "185943696843566542562447634286036005422",
                "277692667548063291066065428623910103029",
                "215908051324476238959927782301764756129",
                "312524572835080705790328797709480058845",
                "131063027831700760180547872807336332226",
                "49601653928833487143571671868479094075",
                "330253729419401523976811592575743725053",
                "217596670662200449262982468161813858299",
                "319337657505743414655605371829243448321",
                "36821067584580712138028378296068541549",
                "178287360882685568023157265714798963352",
                "328427505999410716460359205202664102296",
                "121183472351075847581964866767681636462",
                "193440639689371898238863084968470661745"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "tensorflow/core/kernels/sdca_internal.cc"
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/f7cc8755ac6683131fdfa7a8a121f9d7a9dec6fb"
    }
]