CVE-2021-29544

Source
https://cve.org/CVERecord?id=CVE-2021-29544
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29544.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29544
Aliases
Related
Published
2021-05-14T20:15:12.623Z
Modified
2026-02-24T11:37:39.676773Z
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 trigger a denial of service via a CHECK-fail in tf.raw_ops.QuantizeAndDequantizeV4Grad. This is because the implementation does not validate the rank of the input_* tensors. In turn, this results in the tensors being passes as they are to QuantizeAndDequantizePerChannelGradientImpl. However, the vec<T> method, requires the rank to 1 and triggers a CHECK failure otherwise. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2 as this is the only other affected version.

References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29544.json"
vanir_signatures
[
    {
        "id": "CVE-2021-29544-a2f93e61",
        "signature_version": "v1",
        "target": {
            "file": "tensorflow/core/kernels/quantize_and_dequantize_op.cc"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "176068773716387915431679173772228483723",
                "195008316136258450943681231606746130387",
                "95720392910609131018701593023343122866",
                "3060895597940912716767874583125497482",
                "182232495582687097407204052409773180322"
            ]
        },
        "signature_type": "Line",
        "source": "https://github.com/tensorflow/tensorflow/commit/20431e9044cf2ad3c0323c34888b192f3289af6b",
        "deprecated": false
    }
]