CVE-2021-29547

Source
https://cve.org/CVERecord?id=CVE-2021-29547
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29547.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29547
Aliases
Related
Published
2021-05-14T20:15:12.763Z
Modified
2026-02-13T02:27:59.402257Z
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. An attacker can cause a segfault and denial of service via accessing data outside of bounds in tf.raw_ops.QuantizedBatchNormWithGlobalNormalization. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/55a97caa9e99c7f37a0bbbeb414dc55553d3ae7f/tensorflow/core/kernels/quantizedbatchnorm_op.cc#L176-L189) assumes the inputs are not empty. If any of these inputs is empty, .flat<T>() is an empty buffer, so accessing the element at index 0 is accessing data outside of bounds. 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/cve-osv-conversion/osv-output/CVE-2021-29547.json"
vanir_signatures
[
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b",
        "digest": {
            "line_hashes": [
                "176618047136456417880005532924269322386",
                "297047972375586089626536842260205915101",
                "86200857832530856272713735861939086941",
                "128459269962812644813524439573502370374",
                "234004257098849043291372428099319489604",
                "241579587392670441474268375065918101774",
                "161063756124405785828275356797381227591",
                "37244088738306890189939361308459926176",
                "316467082556001404614516698981229802163",
                "135937994080295905309159847098386748770",
                "167120151489323212762499174682729280990",
                "219490438250623205816948631995075558366",
                "242888050880428708846886754973363308772",
                "72111755195317785167421845503711011011",
                "131068498761825027470444422476444652228",
                "185457261491039634984875476907287325232",
                "238957868349673335557020188134440930668",
                "227576154549641252975969184476197098428",
                "181823546976821326746531119399087937682",
                "77817855725171497703242639549410228571",
                "121111861639199729372945519955015565610"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-29547-9d06ae6e",
        "deprecated": false,
        "target": {
            "file": "tensorflow/core/kernels/quantized_batch_norm_op.cc"
        }
    }
]