CVE-2021-41221
05.11.2021, 23:15
TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for the `Cudnn*` operations in TensorFlow can be tricked into accessing invalid memory, via a heap buffer overflow. This occurs because the ranks of the `input`, `input_h` and `input_c` parameters are not validated, but code assumes they have certain values. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
Vendor | Product | Version |
---|---|---|
tensorflow | 2.4.0 ≤ 𝑥 < 2.4.4 | |
tensorflow | 2.5.0 ≤ 𝑥 < 2.5.2 | |
tensorflow | 2.6.0 ≤ 𝑥 < 2.6.1 | |
tensorflow | 2.7.0:rc0 | |
tensorflow | 2.7.0:rc1 |
𝑥
= Vulnerable software versions
Common Weakness Enumeration
- CWE-120 - Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')The program copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.
- CWE-787 - Out-of-bounds WriteThe software writes data past the end, or before the beginning, of the intended buffer.
References