QID 981504
QID 981504: Python (pip) Security Update for tensorflow-gpu (GHSA-cgfm-62j4-v4rf)
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 of sparse reduction operations in TensorFlow can trigger accesses outside of bounds of heap allocated data:
```python
import tensorflow as tf
x = tf.SparseTensor(
indices=[[773, 773, 773], [773, 773, 773]],
values=[1, 1],
dense_shape=[337, 337, 337])
tf.sparse.reduce_sum(x, 1)
```
The [implementation](https://github.com/tensorflow/tensorflow/blob/a1bc56203f21a5a4995311825ffaba7a670d7747/tensorflow/core/kernels/sparse_reduce_op.cc#L217-L228) fails to validate that each reduction group does not overflow and that each corresponding index does not point to outside the bounds of the input tensor.
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-cgfm-62j4-v4rf -
github.com/advisories/GHSA-cgfm-62j4-v4rf
CVEs related to QID 981504
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-cgfm-62j4-v4rf | tensorflow |
|
|
| GHSA-cgfm-62j4-v4rf | tensorflow-cpu |
|
|
| GHSA-cgfm-62j4-v4rf | tensorflow-gpu |
|