QID 982493
QID 982493: Python (pip) Security Update for tensorflow-gpu (GHSA-fxqh-cfjm-fp93)
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 cause a denial of service via a FPE runtime error in `tf.raw_ops.Reverse`:
```python
import tensorflow as tf
tensor_input = tf.constant([], shape=[0, 1, 1], dtype=tf.int32)
dims = tf.constant([False, True, False], shape=[3], dtype=tf.bool)
tf.raw_ops.Reverse(tensor=tensor_input, dims=dims)
```
This is because the [implementation](https://github.com/tensorflow/tensorflow/blob/36229ea9e9451dac14a8b1f4711c435a1d84a594/tensorflow/core/kernels/reverse_op.cc#L75-L76) performs a division based on the first dimension of the tensor argument:
```cc
const int64 N = input.dim_size(0);
const int64 cost_per_unit = input.NumElements() / N;
```
Since this is controlled by the user, an attacker can trigger a denial of service.
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-fxqh-cfjm-fp93 -
github.com/advisories/GHSA-fxqh-cfjm-fp93
CVEs related to QID 982493
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-fxqh-cfjm-fp93 | tensorflow |
|
|
| GHSA-fxqh-cfjm-fp93 | tensorflow-cpu |
|
|
| GHSA-fxqh-cfjm-fp93 | tensorflow-gpu |
|