Skip to content
LowVulnerability

CVE-2021-29544: TensorFlow denial of service via CHECK failure in QuantizeAndDequantizeV4Grad

Identifier
CVE-2021-29544
Published
Record updated
View JSON
Affected
  • tensorflow >= 2.4.0, < 2.4.2
  • tensorflow-cpu >= 2.4.0, < 2.4.2
  • tensorflow-gpu >= 2.4.0, < 2.4.2
Fixed in
2.4.2
  • tensorflow 2.4.2 released June 15, 2021, 31 days after disclosure
  • tensorflow-cpu 2.4.2 released June 15, 2021, 31 days after disclosure
  • tensorflow-gpu 2.4.2 released June 15, 2021, 31 days after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2021-29544 is a denial of service flaw in TensorFlow. An attacker can trigger a `CHECK` failure in `tf.raw_ops.QuantizeAndDequantizeV4Grad` because the implementation does not validate the rank of the `input_*` tensors, which are then passed to `QuantizeAndDequantizePerChannelGradientImpl`. That method requires rank 1 and fails the check otherwise.

Mitigation

The fix will be included in TensorFlow 2.5.0. The commit will also be cherrypicked to TensorFlow 2.4.2, described as the only other affected version.