CVE-2021-37692
Summary
| CVE | CVE-2021-37692 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-08-12 23:15:00 UTC |
| Updated | 2021-08-31 16:23:00 UTC |
| Description | TensorFlow is an end-to-end open source platform for machine learning. In affected versions 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. We have patched the issue in GitHub commit 8721ba96e5760c229217b594f6d2ba332beedf22. 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| Merge pull request #50508 from wamuir:fix-tstring-dealloc · tensorflow/tensorflow@8721ba9 · GitHub |
MISC |
github.com |
|
| [Go] Fix segfault on string tensors with mismatched dimensions by wamuir · Pull Request #50508 · tensorflow/tensorflow · GitHub |
MISC |
github.com |
|
| Segfault on strings tensors with mistmatched dimensions, due to Go code · Advisory · tensorflow/tensorflow · GitHub |
CONFIRM |
github.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 981553 Python (pip) Security Update for tensorflow-gpu (GHSA-cmgw-8vpc-rc59)