CVE & CISA-KEV Catalog

CVE-2021-29591

HIGH
7.3
CVSS v3
NVD

Description

TensorFlow is an end-to-end open source platform for machine learning. TFlite graphs must not have loops between nodes. However, this condition was not checked and an attacker could craft models that would result in infinite loop during evaluation. In certain cases, the infinite loop would be replaced by stack overflow due to too many recursive calls. For example, the `While` implementation(https://github.com/tensorflow/tensorflow/blob/106d8f4fb89335a2c52d7c895b7a7485465ca8d9/tensorflow/lite/kernels/while.cc) could be tricked into a scneario where both the body and the loop subgraphs are the same. Evaluating one of the subgraphs means calling the `Eval` function for the other and this quickly exhaust all stack space. 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. Please consult our security guide(https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.

How to fix

Remediation Available
tensorflowNVD
Affected:>= 2.4.0, < 2.4.2Fixed in:2.4.2CVE-2021-29591derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityLow
AvailabilityHigh

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

Exploit Intelligence

0.26%probability of exploitation in 30 days
18thpercentile

Low risk: more likely to be exploited than 18% of all known CVEs.

References

Related Vulnerabilities

Other CWE-835 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-13935High7.588%-Fix
CVE-2020-36227High7.578%-Fix
CVE-2022-0778High7.571%-Fix
CVE-2019-14241High7.570%--
CVE-2017-16944High7.563%-Fix
CVE-2024-20353High8.663%KEV-
Embed a live status badge for CVE-2021-29591
CVE-2021-29591 severity badge

Markdown

[![CVE-2021-29591](https://tridentstack.com/cve/badge/CVE-2021-29591.svg)](https://tridentstack.com/cve/CVE-2021-29591)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-29591"><img src="https://tridentstack.com/cve/badge/CVE-2021-29591.svg" alt="CVE-2021-29591"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.