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-03-20T11:41:58.764324Z
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
Database specific
{
    "versions": [
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.2"
        }
    ]
}

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",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "176068773716387915431679173772228483723",
                "195008316136258450943681231606746130387",
                "95720392910609131018701593023343122866",
                "3060895597940912716767874583125497482",
                "182232495582687097407204052409773180322"
            ]
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/20431e9044cf2ad3c0323c34888b192f3289af6b",
        "target": {
            "file": "tensorflow/core/kernels/quantize_and_dequantize_op.cc"
        },
        "signature_type": "Line",
        "signature_version": "v1"
    }
]