QID 981520
QID 981520: Python (pip) Security Update for tensorflow-gpu (GHSA-hpv4-7p9c-mvfr)
Security update has been released for tensorflow-gpu,tensorflow,tensorflow-cpu to fix the vulnerability.
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
The implementation for `tf.raw_ops.FractionalAvgPoolGrad` can be tricked into accessing data outside of bounds of heap allocated buffers:
```python
import tensorflow as tf
tf.raw_ops.FractionalAvgPoolGrad(
orig_input_tensor_shape=[0,1,2,3],
out_backprop = np.array([[[[541],[541]],[[541],[541]]]]),
row_pooling_sequence=[0, 0, 0, 0, 0],
col_pooling_sequence=[-2, 0, 0, 2, 0],
overlapping=True)
```
The [implementation](https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/fractional_avg_pool_op.cc#L205) does not validate that the input tensor is non-empty. Thus, code constructs an empty `EigenDoubleMatrixMap` and then accesses this buffer with indices that are outside of the empty area.
The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
- GHSA-hpv4-7p9c-mvfr -
github.com/advisories/GHSA-hpv4-7p9c-mvfr
CVEs related to QID 981520
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-hpv4-7p9c-mvfr | tensorflow |
|
|
| GHSA-hpv4-7p9c-mvfr | tensorflow-cpu |
|
|
| GHSA-hpv4-7p9c-mvfr | tensorflow-gpu |
|