cbcvebase.
CVE-2021-29584
published 2021-05-14

CVE-2021-29584: TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a denial of service via a `CHECK`-fail in caused by an integer…

medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a denial of service via a `CHECK`-fail in caused by an integer overflow in constructing a new tensor shape. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/0908c2f2397c099338b901b067f6495a5b96760b/tensorflow/core/kernels/sparse_split_op.cc#L66-L70) builds a dense shape without checking that the dimensions would not result in overflow. The `TensorShape` constructor(https://github.com/tensorflow/tensorflow/blob/6f9896890c4c703ae0a0845394086e2e1e523299/tensorflow/core/framework/tensor_shape.cc#L183-L188) uses a `CHECK` operation which triggers when `InitDims`(https://github.com/tensorflow/tensorflow/blob/6f9896890c4c703ae0a0845394086e2e1e523299/tensorflow/core/framework/tensor_shape.cc#L212-L296) returns a non-OK status. This is a legacy implementation of the constructor and operations should use `BuildTensorShapeBase` or `AddDimWithStatus` to prevent `CHECK`-failures in the presence of overflows. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

Affected

24 ranges
VendorProductVersion rangeFixed in
debiantensorflow
googletensorflow< 2.4.42.4.4
googletensorflow< 2.1.42.1.4
googletensorflow>= 2.2.0 < 2.2.32.2.3
googletensorflow>= 2.3.0 < 2.3.32.3.3
googletensorflow>= 2.4.0 < 2.4.22.4.2
googletensorflow>= 2.5.0 < 2.5.22.5.2
googletensorflow>= 2.6.0 < 2.6.12.6.1
inteloptimization_for_tensorflow< d81b1351da3e8c884ff836b64458d94e4a157c15d81b1351da3e8c884ff836b64458d94e4a157c15
inteloptimization_for_tensorflow< 7c1692bd417eb4f9b33ead749a41166d6080af857c1692bd417eb4f9b33ead749a41166d6080af85
inteloptimization_for_tensorflow>= 0 < a871989d7b6c18cdebf2fb4f0e5c5b62fbc19edfa871989d7b6c18cdebf2fb4f0e5c5b62fbc19edf
inteloptimization_for_tensorflow>= 0 < 2.4.42.4.4
inteloptimization_for_tensorflow>= 0 < e9c81c1e1a9cd8dd31f4e83676cab61b60658429e9c81c1e1a9cd8dd31f4e83676cab61b60658429
inteloptimization_for_tensorflow>= 0 < 2.1.42.1.4
inteloptimization_for_tensorflow>= 0 < 4c0ee937c0f61c4fc5f5d32d9bb4c67428012a604c0ee937c0f61c4fc5f5d32d9bb4c67428012a60
inteloptimization_for_tensorflow>= 2.2.0 < 2.2.32.2.3
inteloptimization_for_tensorflow>= 2.3.0 < 2.3.32.3.3
inteloptimization_for_tensorflow>= 2.4.0 < 2.4.22.4.2
inteloptimization_for_tensorflow>= 2.5.0 < 2.5.22.5.2
inteloptimization_for_tensorflow>= 2.6.0 < 2.6.12.6.1
inteloptimization_for_tensorflow>= 2.7.0rc0 < 2.7.02.7.0
tensorflowtensorflow< 2.4.42.4.4
tensorflowtensorflow
tensorflowtensorflow

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
ghsa5.5MEDIUM
osv5.5MEDIUM