CVE-2021-41216
05.11.2021, 23:15
TensorFlow is an open source platform for machine learning. In affected versions the shape inference function for `Transpose` is vulnerable to a heap buffer overflow. This occurs whenever `perm` contains negative elements. The shape inference function does not validate that the indices in `perm` are all valid. 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