cve.bz

CVE-2021-37665 google tensorflow: Improper Input Validation

7.8 highEPSS 0.2%Fix available

High (7.8) in google tensorflow. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in tensorflow 2.3.4, 2.4.3, 2.5.1.

On this page
TensorFlow is an end-to-end open source platform for machine learning. In affected versions due to incomplete validation in MKL implementation of requantization, an attacker can trigger undefined behavior via binding a reference to a null pointer or can access data outside the bounds of heap allocated arrays. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/mkl/mkl_requantization_range_per_channel_op.cc) does not validate the dimensions of the `input` tensor. A similar issue occurs in `MklRequantizePerChannelOp`. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/mkl/mkl_requantize_per_channel_op.cc) does not perform full validation for all the input arguments. We have patched the issue in GitHub commit 9e62869465573cb2d9b5053f1fa02a81fce21d69 and in the Github commit 203214568f5bc237603dbab6e1fd389f1572f5c9. 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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-37665 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-37665?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-37665?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-37665 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
google:tensorflowfrom 2.3.0 before 2.3.4
google:tensorflowfrom 2.4.0 before 2.4.3
google:tensorflow2.5.0
google:tensorflow2.6.0:rc0
google:tensorflow2.6.0:rc1
google:tensorflow2.6.0:rc2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v82p-hv3v-p6qpPyPItensorflow<2.3.42.3.4
GHSA-v82p-hv3v-p6qpPyPItensorflow>=2.4.0 <2.4.32.4.3
GHSA-v82p-hv3v-p6qpPyPItensorflow>=2.5.0 <2.5.12.5.1
GHSA-v82p-hv3v-p6qpPyPItensorflow-cpu<2.3.42.3.4
GHSA-v82p-hv3v-p6qpPyPItensorflow-cpu>=2.4.0 <2.4.32.4.3
GHSA-v82p-hv3v-p6qpPyPItensorflow-cpu>=2.5.0 <2.5.12.5.1
GHSA-v82p-hv3v-p6qpPyPItensorflow-gpu<2.3.42.3.4
GHSA-v82p-hv3v-p6qpPyPItensorflow-gpu>=2.4.0 <2.4.32.4.3
GHSA-v82p-hv3v-p6qpPyPItensorflow-gpu>=2.5.0 <2.5.12.5.1
PYSEC-2021-287PyPItensorflow>=2.3.0 <2.3.4
>=2.4.0 <2.4.3
2.3.4, 2.4.3
PYSEC-2021-578PyPItensorflow-cpu>=2.3.0 <2.3.4
>=2.4.0 <2.4.3
2.3.4, 2.4.3
PYSEC-2021-776PyPItensorflow-gpu>=2.3.0 <2.3.4
>=2.4.0 <2.4.3
2.3.4, 2.4.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSEPackage Hub 15 SP3bazel-skylib1.0.31.0.3-bp153.2.1openSUSE-SU-2022:10014-1
SUSEPackage Hub 15 SP3bazel3.73.7.2-bp153.4.1openSUSE-SU-2022:10014-1
SUSEPackage Hub 15 SP3tensorflow2, tensorflow2-lite, tensorflow2_2_6_0-gnu-hpc and 1 more2.6.0-bp153.2.3.1openSUSE-SU-2022:10014-1
openSUSELeap 15.3bazel-skylib1.0.31.0.3-bp153.2.1openSUSE-SU-2022:10014-1
openSUSELeap 15.3bazel3.73.7.2-bp153.4.1openSUSE-SU-2022:10014-1
openSUSELeap 15.3tensorflow2, tensorflow2-lite, tensorflow2_2_6_0-gnu-hpc and 1 more2.6.0-bp153.2.3.1openSUSE-SU-2022:10014-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON