QID 981540
QID 981540: Python (pip) Security Update for tensorflow-gpu (GHSA-qr82-2c78-4m8h)
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.
An attacker can cause undefined behavior via binding a reference to null pointer in `tf.raw_ops.Map*` and `tf.raw_ops.OrderedMap*` operations:
```python
import tensorflow as tf
tf.raw_ops.MapPeek(
key=tf.constant([8],dtype=tf.int64),
indices=[],
dtypes=[tf.int32],
capacity=8,
memory_limit=128)
```
The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/map_stage_op.cc#L222-L248) has a check in place to ensure that `indices` is in ascending order, but does not check that `indices` is not empty.
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-qr82-2c78-4m8h -
github.com/advisories/GHSA-qr82-2c78-4m8h
CVEs related to QID 981540
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-qr82-2c78-4m8h | tensorflow |
|
|
| GHSA-qr82-2c78-4m8h | tensorflow-cpu |
|
|
| GHSA-qr82-2c78-4m8h | tensorflow-gpu |
|