QID 982520
QID 982520: Python (pip) Security Update for tensorflow-gpu (GHSA-4vf2-4xcg-65cx)
Security update has been released for tensorflow,tensorflow-cpu,tensorflow-gpu 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.
An attacker can trigger a division by 0 in `tf.raw_ops.Conv2D`:
```python
import tensorflow as tf
input = tf.constant([], shape=[0, 0, 0, 0], dtype=tf.float32)
filter = tf.constant([], shape=[0, 0, 0, 0], dtype=tf.float32)
strides = [1, 1, 1, 1]
padding = "SAME"
tf.raw_ops.Conv2D(input=input, filter=filter, strides=strides, padding=padding)
```
This is because the [implementation](https://github.com/tensorflow/tensorflow/blob/988087bd83f144af14087fe4fecee2d250d93737/tensorflow/core/kernels/conv_ops.cc#L261-L263) does a division by a quantity that is controlled by the caller:
```cc
const int64 patch_depth = filter.dim_size(2);
if (in_depth % patch_depth != 0) { ... }
```
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.
- GHSA-4vf2-4xcg-65cx -
github.com/advisories/GHSA-4vf2-4xcg-65cx
CVEs related to QID 982520
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-4vf2-4xcg-65cx | tensorflow |
|
|
| GHSA-4vf2-4xcg-65cx | tensorflow-cpu |
|
|
| GHSA-4vf2-4xcg-65cx | tensorflow-gpu |
|