
Cloud Vulnerability DB
A community-led vulnerabilities database
TensorFlow, an end-to-end open source platform for machine learning, was found to contain a division by zero vulnerability (CVE-2021-29525) in the tf.raw_ops.Conv2DBackpropInput operation. The vulnerability was discovered and disclosed on May 14, 2021, affecting all versions prior to 2.5.0. The issue impacts multiple versions of TensorFlow including versions up to 2.1.4, 2.2.0-2.2.3, 2.3.0-2.3.3, and 2.4.0-2.4.2 (NVD).
The vulnerability exists in the implementation of Conv2DBackpropInput where a division operation is performed using a quantity that is controlled by the caller. The issue occurs in the core/kernels/conv_grad_input_ops.h file where the code performs division without proper validation of the divisor. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) by NIST NVD, while GitHub's assessment rates it as LOW with a score of 2.5 (NVD).
If successfully exploited, an attacker can trigger a division by zero error by providing specially crafted input to the tf.raw_ops.Conv2DBackpropInput operation. This can lead to program crashes and potential denial of service conditions (GitHub Advisory).
The vulnerability can be exploited by passing specific parameters to tf.raw_ops.Conv2DBackpropInput. A proof of concept exists that demonstrates the vulnerability by using input tensors with carefully chosen shapes that trigger the division by zero condition. The exploit was initially reported by Yakun Zhang and Ying Wang of Baidu X-Team (GitHub Advisory).
The vulnerability has been patched in TensorFlow version 2.5.0. The fix has also been backported to versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4. Users are advised to upgrade to these patched versions. The fix involves adding proper validation to ensure the work_unit_size is greater than 0 before performing the division operation (TensorFlow Commit).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."