CVE-2021-29610

Source
https://cve.org/CVERecord?id=CVE-2021-29610
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29610.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29610
Aliases
Related
Published
2021-05-14T20:15:15.900Z
Modified
2026-02-16T07:52:06.117477Z
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. The validation in tf.raw_ops.QuantizeAndDequantizeV2 allows invalid values for axis argument:. The validation(https://github.com/tensorflow/tensorflow/blob/eccb7ec454e6617738554a255d77f08e60ee0808/tensorflow/core/kernels/quantizeanddequantize_op.cc#L74-L77) uses || to mix two different conditions. If axis_ < -1 the condition in OP_REQUIRES will still be true, but this value of axis_ results in heap underflow. This allows attackers to read/write to other data on the heap. 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-29610.json"
vanir_signatures
[
    {
        "id": "CVE-2021-29610-35823ad9",
        "target": {
            "file": "tensorflow/core/kernels/quantize_and_dequantize_op.cc"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/c5b0d5f8ac19888e46ca14b0e27562e7fbbee9a9",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "327533452129604578880671955415269926935",
                "288809565933839217161412638839370178712",
                "38095332611607202463165119455271685678",
                "240283840732393770553666969237872091674"
            ]
        },
        "signature_type": "Line"
    }
]