QID 980180
QID 980180: Python (pip) Security Update for tensorflow-gpu (GHSA-x3v8-c8qx-3j3r)
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 [shape inference code for `DeserializeSparse`](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/ops/sparse_ops.cc#L152-L168) can trigger a null pointer dereference:
```python
import tensorflow as tf
dataset = tf.data.Dataset.range(3)
@tf.function
def test():
y = tf.raw_ops.DeserializeSparse(
serialized_sparse=tf.data.experimental.to_variant(dataset),
dtype=tf.int32)
test()
```
This is because the shape inference function assumes that the `serialize_sparse` tensor is a tensor with positive rank (and having `3` as the last dimension). However, in the example above, the argument is a scalar (i.e., rank 0).
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-x3v8-c8qx-3j3r -
github.com/advisories/GHSA-x3v8-c8qx-3j3r
CVEs related to QID 980180
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-x3v8-c8qx-3j3r | tensorflow |
|
|
| GHSA-x3v8-c8qx-3j3r | tensorflow-cpu |
|
|
| GHSA-x3v8-c8qx-3j3r | tensorflow-gpu |
|