QID 981522
QID 981522: Python (pip) Security Update for tensorflow-gpu (GHSA-qjj8-32p7-h289)
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 trigger a crash via a floating point exception in `tf.raw_ops.ResourceGather`:
```python
import tensorflow as tf
tensor = tf.constant(value=[[]],shape=(0,1),dtype=tf.uint32)
v = tf.Variable(tensor)
tf.raw_ops.ResourceGather(
resource=v.handle,
indices=[0],
dtype=tf.uint32,
batch_dims=1,
validate_indices=False)
```
The [implementation](https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/resource_variable_ops.cc#L725-L731) computes the value of a value, `batch_size`, and then divides by it without checking that this value is not 0.
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-qjj8-32p7-h289 -
github.com/advisories/GHSA-qjj8-32p7-h289
CVEs related to QID 981522
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-qjj8-32p7-h289 | tensorflow |
|
|
| GHSA-qjj8-32p7-h289 | tensorflow-cpu |
|
|
| GHSA-qjj8-32p7-h289 | tensorflow-gpu |
|