SCA: security update for tensorflow, tensorflow-cpu, tensorflow-gpu (GHSA-f78g-q7r4-9wcv)

low Tenable Self-Hosted Container Security Plugin ID 414353

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. An attacker can cause a runtime
division by zero error and denial of service in `tf.raw_ops.FractionalAvgPool`. This is because the implem
entation(https://github.com/tensorflow/tensorflow/blob/acc8ee69f5f46f92a3f1f11230f49c6ac266f10c/tensorflow
/core/kernels/fractional_avg_pool_op.cc#L85-L89) computes a divisor quantity by dividing two user
controlled values. The user controls the values of `input_size[i]` and `pooling_ratio_[i]` (via the
`value.shape()` and `pooling_ratio` arguments). If the value in `input_size[i]` is smaller than the
`pooling_ratio_[i]`, then the floor operation results in `output_size[i]` being 0. The `DCHECK_GT` line is
a no-op outside of debug mode, so in released versions of TF this does not trigger. Later, these computed
values are used as arguments(https://github.com/tensorflow/tensorflow/blob/acc8ee69f5f46f92a3f1f11230f49c6
ac266f10c/tensorflow/core/kernels/fractional_avg_pool_op.cc#L96-L99) to `GeneratePoolingSequence`(https://
github.com/tensorflow/tensorflow/blob/acc8ee69f5f46f92a3f1f11230f49c6ac266f10c/tensorflow/core/kernels/fra
ctional_pool_common.cc#L100-L108). There, the first computation is a division in a modulo operation. Since
`output_length` can be 0, this results in runtime crashing. 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. (CVE-2021-29550)

See Also

https://github.com/advisories/GHSA-f78g-q7r4-9wcv

Plugin Details

Severity: Low

ID: 414353

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: Low

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-29550

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

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:P/RL:O/RC:C

CVSS v4

Risk Factor: Low

Base Score: 2

Threat Score: 1.1

Threat Vector: CVSS:4.0/E:P

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/21/2021

Vulnerability Publication Date: 5/14/2021

Reference Information

CVE: CVE-2021-29550

cwe: CWE-369