VDB

CVE-2021-37692

CVE-2021-37692 PUBLISHED

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.

EPSS 0.03% · 9.8th percentile

Risk Scores

EPSS Score
0.03%
9.8th percentile

Affected Products

VendorProductVersions
Bitnamitensorflow2.5.0
Bitnamitensorflow2.5.0

Timeline

  • Aug 12, 2021 CVE Published
  • Aug 13, 2021 EPSS Score
  • Oct 11, 2021 EPSS Score
  • Dec 8, 2021 EPSS Score
  • Jan 6, 2022 EPSS Score
  • Feb 5, 2022 EPSS Score
  • Apr 4, 2022 EPSS Score
  • Jun 2, 2022 EPSS Score
  • Aug 1, 2022 EPSS Score
  • Sep 28, 2022 EPSS Score
  • Nov 26, 2022 EPSS Score
  • Jan 24, 2023 EPSS Score
Open in Interactive Console →
$ Console Community · 100/wk Open console ›