Headline
CVE-2022-23564: Prevent `CHECK`-fail when decoding resource handles from proto · tensorflow/tensorflow@14fea66
Tensorflow is an Open Source Machine Learning Framework. When decoding a resource handle tensor from protobuf, a TensorFlow process can encounter cases where a CHECK
assertion is invalidated based on user controlled arguments. This allows attackers to cause denial of services in TensorFlow processes. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
Permalink
Browse files
Prevent CHECK
-fail when decoding resource handles from proto
In certain scenarios, the proto might contain tensors that have too many elements (overflow). This is a `CHECK`-fail in general, but we should prevent this, given how many CVEs caused by that we have received this year (a large fraction of 200).
PiperOrigin-RevId: 408049766 Change-Id: I2ac20b247aa8ed9110846fbdb7a0a9401f2c168c
- Loading branch information
Showing with 72 additions and 8 deletions.
- +2 −0 tensorflow/core/framework/BUILD
- +24 −7 tensorflow/core/framework/resource_handle.cc
- +6 −1 tensorflow/core/framework/resource_handle.h
- +40 −0 tensorflow/core/framework/tensor.cc