CVE & CISA-KEV Catalog

CVE-2021-37646

MEDIUM
5.5
CVSS v3
NVD

Description

TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of `tf.raw_ops.StringNGrams` is vulnerable to an integer overflow issue caused by converting a signed integer value to an unsigned one and then allocating memory based on this value. The implementation calls `reserve` on a `tstring` with a value that sometimes can be negative if user supplies negative `ngram_widths`. The `reserve` method calls `TF_TString_Reserve` which has an `unsigned long` argument for the size of the buffer. Hence, the implicit conversion transforms the negative value to a large integer. We have patched the issue in GitHub commit c283e542a3f422420cfdb332414543b62fc4e4a5. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.

How to fix

Remediation Available
tensorflowNVD
Affected:>= 2.4.0, < 2.4.3Fixed in:2.4.3CVE-2021-37646derived 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

ConfidentialityNone
IntegrityNone
AvailabilityHigh

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

Exploit Intelligence

0.15%probability of exploitation in 30 days
5thpercentile

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

References

Third-Party Advisory1

Related Vulnerabilities

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

CVESeverityCVSSEPSSExploitedFix
CVE-2009-0231High8.837%--
CVE-2016-3074Critical9.837%-Fix
CVE-2008-1721High7.523%-Fix
CVE-2017-7308High7.818%-Fix
CVE-2022-34169High7.518%-Fix
CVE-2022-43663High8.114%--
Embed a live status badge for CVE-2021-37646
CVE-2021-37646 severity badge

Markdown

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

HTML

<a href="https://tridentstack.com/cve/CVE-2021-37646"><img src="https://tridentstack.com/cve/badge/CVE-2021-37646.svg" alt="CVE-2021-37646"></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.