QID 980162
QID 980162: Python (pip) Security Update for tensorflow-gpu (GHSA-m539-j985-hcr8)
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 Keras pooling layers can trigger a segfault if the size of the pool is 0 or if a dimension is negative:
```python
import tensorflow as tf
pool_size = [2, 2, 0]
layer = tf.keras.layers.MaxPooling3D(strides=1, pool_size=pool_size)
input_tensor = tf.random.uniform([3, 4, 10, 11, 12], dtype=tf.float32)
res = layer(input_tensor)
```
This is due to the TensorFlow's implementation of pooling operations where the values in the sliding window are not checked to be strictly positive.
The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
- GHSA-m539-j985-hcr8 -
github.com/advisories/GHSA-m539-j985-hcr8
CVEs related to QID 980162
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-m539-j985-hcr8 | tensorflow |
|
|
| GHSA-m539-j985-hcr8 | tensorflow-cpu |
|
|
| GHSA-m539-j985-hcr8 | tensorflow-gpu |
|