Heap buffer overflow in `Transpose`
tensorflow
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
tensorflow
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
|
| tensorflow-gpu PyPI |
|
|
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.
From the CVE record · GitHub_M
Affected TensorFlow versions have a heap buffer overflow in `Transpose` shape inference when `perm` contains negative elements, because the indices are not validated. The input does not specify how an attacker could reach this function or whether authentication or user interaction is required.
Teams using PyPI `tensorflow`, `tensorflow-cpu`, or `tensorflow-gpu` versions below 2.4.4, 2.5.0–2.5.1, 2.6.0, or 2.7.0 release candidates should check their installations.