CVE-2021-29533

Source
https://cve.org/CVERecord?id=CVE-2021-29533
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29533.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29533
Aliases
Related
Published
2021-05-14T20:15:12.120Z
Modified
2026-02-21T01:29:23.559112Z
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 failure by passing an empty image to tf.raw_ops.DrawBoundingBoxes. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/ea34a18dc3f5c8d80a40ccca1404f343b5d55f91/tensorflow/core/kernels/image/drawboundingbox_op.cc#L148-L165) uses CHECK_* assertions instead of OP_REQUIRES to validate user controlled inputs. Whereas OP_REQUIRES allows returning an error condition back to the user, the CHECK_* macros result in a crash if the condition is false, similar to assert. In this case, height is 0 from the images input. This results in max_box_row_clamp being negative and the assertion being falsified, followed by aborting program execution. 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-29533.json"
vanir_signatures
[
    {
        "id": "CVE-2021-29533-eaba3bab",
        "target": {
            "file": "tensorflow/core/kernels/image/draw_bounding_box_op.cc"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/b432a38fe0e1b4b904a6c222cbce794c39703e87",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "267413333475688080251685616192947146508",
                "334553596165813398225274829094635607658",
                "6073848535019442267828788662050189347",
                "169031385353449930590779940463115212372",
                "20944233781846425550852637853647954458",
                "217835329543624270230148278106400210908",
                "303834746923346179173659433999959888111",
                "304663691228497084281521224743515661766",
                "143286109901747644389525993250209202685",
                "37339197546976871794140931332179446984",
                "168343980255179955095721746745674898804",
                "52210012986390939857633502336225092180",
                "122092512939593750719665404946302741183",
                "109528240846836645269196123406131097979",
                "311295855117876332900622021355953889213"
            ]
        },
        "signature_type": "Line"
    }
]