ADVISORIES

PyPA Advisory Database

PYSEC-2020-333

Details

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.

Affected packages

EcosystemPackageAffected versions
PyPItensorflow-gpu
All versions before 1.15.5 (fixed in 1.15.5)
From 2.0.0 before 2.0.4 (fixed in 2.0.4)
From 2.1.0 before 2.1.3 (fixed in 2.1.3)
From 2.2.0 before 2.2.2 (fixed in 2.2.2)
From 2.3.0 before 2.3.2 (fixed in 2.3.2)

References