CVE-2021-29568

Source
https://cve.org/CVERecord?id=CVE-2021-29568
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29568.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29568
Aliases
Related
Published
2021-05-14T20:15:13.743Z
Modified
2026-02-24T11:39:43.394361Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger undefined behavior by binding to null pointer in tf.raw_ops.ParameterizedTruncatedNormal. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/3f6fe4dfef6f57e768260b48166c27d148f3015f/tensorflow/core/kernels/parameterizedtruncatednormal_op.cc#L630) does not validate input arguments before accessing the first element of shape. If shape argument is empty, then shape_tensor.flat<T>() is an empty array. 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

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29568.json"
vanir_signatures
[
    {
        "id": "CVE-2021-29568-fd4df4da",
        "source": "https://github.com/tensorflow/tensorflow/commit/5e52ef5a461570cfb68f3bdbbebfe972cb4e0fd8",
        "target": {
            "file": "tensorflow/core/kernels/parameterized_truncated_normal_op.cc"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "85223378538297375800593643846912557248",
                "164817722224352317727180257294798523188",
                "138440010942191015621259011440370079492",
                "116081419159561450046422290352802899907"
            ]
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line"
    }
]