QID 980168
QID 980168: Python (pip) Security Update for tensorflow-gpu (GHSA-xrqm-fpgr-6hhx)
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.
While calculating the size of the output within the `tf.range` kernel, there is a conditional statement of type `int64 = condition ? int64 : double`. Due to C++ implicit conversion rules, both branches of the condition will be cast to `double` and the result would be truncated before the assignment. This result in overflows:
```python
import tensorflow as tf
tf.sparse.eye(num_rows=9223372036854775807, num_columns=None)
```
Similarly, `tf.range` would result in crashes due to overflows if the start or end point are too large.
```python
import tensorflow as tf
tf.range(start=-1e+38, limit=1)
```
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-xrqm-fpgr-6hhx -
github.com/advisories/GHSA-xrqm-fpgr-6hhx
CVEs related to QID 980168
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-xrqm-fpgr-6hhx | tensorflow |
|
|
| GHSA-xrqm-fpgr-6hhx | tensorflow-cpu |
|
|
| GHSA-xrqm-fpgr-6hhx | tensorflow-gpu |
|