QID 981513
QID 981513: Python (pip) Security Update for tensorflow-gpu (GHSA-27j5-4p9v-pp67)
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.
Providing a negative element to `num_elements` list argument of `tf.raw_ops.TensorListReserve` causes the runtime to abort the process due to reallocating a `std::vector` to have a negative number of elements:
```python
import tensorflow as tf
tf.raw_ops.TensorListReserve(
element_shape = tf.constant([1]),
num_elements=tf.constant([-1]),
element_dtype = tf.int32)
```
The [implementation](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/list_kernels.cc#L312) calls `std::vector.resize()` with the new size controlled by input given by the user, without checking that this input is valid.
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-27j5-4p9v-pp67 -
github.com/advisories/GHSA-27j5-4p9v-pp67
CVEs related to QID 981513
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-27j5-4p9v-pp67 | tensorflow |
|
|
| GHSA-27j5-4p9v-pp67 | tensorflow-cpu |
|
|
| GHSA-27j5-4p9v-pp67 | tensorflow-gpu |
|