CVE-2021-29546

Source
https://cve.org/CVERecord?id=CVE-2021-29546
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29546.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29546
Aliases
Related
Published
2021-05-14T20:15:12.717Z
Modified
2026-02-24T11:38:50.233935Z
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 an integer division by zero undefined behavior in tf.raw_ops.QuantizedBiasAdd. This is because the implementation of the Eigen kernel(https://github.com/tensorflow/tensorflow/blob/61bca8bd5ba8a68b2d97435ddfafcdf2b85672cd/tensorflow/core/kernels/quantization_utils.h#L812-L849) does a division by the number of elements of the smaller input (based on shape) without checking that this is not zero. 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

vanir_signatures
[
    {
        "source": "https://github.com/tensorflow/tensorflow/commit/67784700869470d65d5f2ef20aeb5e97c31673cb",
        "deprecated": false,
        "signature_type": "Line",
        "target": {
            "file": "tensorflow/core/kernels/quantized_bias_add_op.cc"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "77972019715119882521116030740925505477",
                "142405172112189459878205570031564949365",
                "327035579394672081298694324650543877318",
                "255709012719058337333608248494222512489"
            ]
        },
        "signature_version": "v1",
        "id": "CVE-2021-29546-effa7e39"
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29546.json"