Lack of validation in data format attributes in TensorFlow
tensorflow
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
tensorflow
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
2.3.2| tensorflow-cpu PyPI |
|
|
| tensorflow-gpu PyPI |
|
|
In affected versions of TensorFlow the tf.raw_ops.DataFormatVecPermute API does not validate the src_format and dst_format attributes. The code assumes that these two arguments define a permutation of NHWC. This can result in uninitialized memory accesses, read outside of bounds and even crashes. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
From the CVE record · GitHub_M
TensorFlow's tf.raw_ops.DataFormatVecPermute does not validate its src_format and dst_format attributes. Calling it with invalid attributes can cause uninitialized memory access, an out-of-bounds read, or a crash. The input does not specify whether exploitation requires network access, authentication, or user interaction.
Teams using PyPI tensorflow, tensorflow-cpu, or tensorflow-gpu versions before 1.15.5, or versions 2.0.0–2.0.3, 2.1.0–2.1.2, 2.2.0–2.2.1, or 2.3.0–2.3.1, should check their installations.