QID 982458
QID 982458: Python (pip) Security Update for tensorflow-gpu (GHSA-vf94-36g5-69v8)
Security update has been released for tensorflow,tensorflow-cpu,tensorflow-gpu 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 implementation of the `DepthToSpace` TFLite operator is [vulnerable to a division by zero error](https://github.com/tensorflow/tensorflow/blob/0d45ea1ca641b21b73bcf9c00e0179cda284e7e7/tensorflow/lite/kernels/depth_to_space.cc#L63-L69):
```cc
const int block_size = params->block_size;
...
const int input_channels = input->dims->data[3];
...
int output_channels = input_channels / block_size / block_size;
```
An attacker can craft a model such that `params->block_size` is 0.
The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.
- GHSA-vf94-36g5-69v8 -
github.com/advisories/GHSA-vf94-36g5-69v8
CVEs related to QID 982458
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-vf94-36g5-69v8 | tensorflow |
|
|
| GHSA-vf94-36g5-69v8 | tensorflow-cpu |
|
|
| GHSA-vf94-36g5-69v8 | tensorflow-gpu |
|