QID 981553
QID 981553: Python (pip) Security Update for tensorflow-gpu (GHSA-cmgw-8vpc-rc59)
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.
Under certain conditions, Go code can trigger a segfault in string deallocation.
For string tensors, `C.TF_TString_Dealloc` is called during garbage collection within a finalizer function. However, tensor structure isn't checked until encoding to avoid a performance penalty. The current method for dealloc assumes that encoding succeeded, but segfaults when a string tensor is garbage collected whose encoding failed (e.g., due to mismatched dimensions).
To fix this, the call to set the finalizer function is deferred until `NewTensor` returns and, if encoding failed for a string tensor, deallocs are determined based on bytes written.
The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, which is the other affected version.
- GHSA-cmgw-8vpc-rc59 -
github.com/advisories/GHSA-cmgw-8vpc-rc59
CVEs related to QID 981553
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-cmgw-8vpc-rc59 | tensorflow |
|
|
| GHSA-cmgw-8vpc-rc59 | tensorflow-cpu |
|
|
| GHSA-cmgw-8vpc-rc59 | tensorflow-gpu |
|