SCA: security update for tensorflow, tensorflow-cpu, tensorflow-gpu (GHSA-cmgw-8vpc-rc59)

medium Tenable Cloud Security Plugin ID 413974

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2021-37692)

See Also

https://github.com/advisories/GHSA-cmgw-8vpc-rc59

Plugin Details

Severity: Medium

ID: 413974

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Low

Base Score: 2.1

Temporal Score: 1.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2021-37692

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.8

Threat Score: 4.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 8/25/2021

Vulnerability Publication Date: 8/12/2021

Reference Information

CVE: CVE-2021-37692

cwe: CWE-20