QID 981518
QID 981518: Python (pip) Security Update for tensorflow-gpu (GHSA-6gv8-p3vj-pxvr)
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 code for `tf.raw_ops.UncompressElement` can be made to trigger a null pointer dereference:
```python
import tensorflow as tf
data = tf.data.Dataset.from_tensors([0.0])
tf.raw_ops.UncompressElement(
compressed=tf.data.experimental.to_variant(data),
output_types=[tf.int64],
output_shapes=[2])
```
The [implementation](https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/data/experimental/compression_ops.cc#L50-L53) obtains a pointer to a `CompressedElement` from a `Variant` tensor and then proceeds to dereference it for decompressing. There is no check that the `Variant` tensor contained a `CompressedElement`, so the pointer is actually `nullptr`.
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-6gv8-p3vj-pxvr -
github.com/advisories/GHSA-6gv8-p3vj-pxvr
CVEs related to QID 981518
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-6gv8-p3vj-pxvr | tensorflow |
|
|
| GHSA-6gv8-p3vj-pxvr | tensorflow-cpu |
|
|
| GHSA-6gv8-p3vj-pxvr | tensorflow-gpu |
|