Security mailing lists by PureSourceCode

CVE-2021-37665

HIGH 7.8CVSS 3.1

Incomplete validation in MKL requantization

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 does not validate the dimensions of the input tensor. A similar issue occurs in MklRequantizePerChannelOp. The implementation 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.

Published
12 Aug 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-20
Also known as
BIT-tensorflow-2021-37665GHSA-v82p-hv3v-p6qpPYSEC-2021-287PYSEC-2021-578PYSEC-2021-776
Sources
NVDJSONOSV GHSA-v82p-hv3v-p6qpJSONOSV PYSEC-2021-287JSONOSV PYSEC-2021-578JSONOSV PYSEC-2021-776JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
>= 2.3.0, < 2.3.4 2.3.4
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
>= 2.4.0, < 2.4.3 2.4.3
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.5.0:*:*:*:*:*:*:*
= 2.5.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.6.0:rc0:*:*:*:*:*:*
= 2.6.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.6.0:rc1:*:*:*:*:*:*
= 2.6.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.6.0:rc2:*:*:*:*:*:*
= 2.6.0
OSV PyPI tensorflow < 2.3.4 2.3.4
OSV PyPI tensorflow >= 2.4.0, < 2.4.3 2.4.3
OSV PyPI tensorflow >= 2.5.0, < 2.5.1 2.5.1
OSV PyPI tensorflow-cpu < 2.3.4 2.3.4
OSV PyPI tensorflow-cpu >= 2.4.0, < 2.4.3 2.4.3
OSV PyPI tensorflow-cpu >= 2.5.0, < 2.5.1 2.5.1
OSV PyPI tensorflow-gpu < 2.3.4 2.3.4
OSV PyPI tensorflow-gpu >= 2.4.0, < 2.4.3 2.4.3
OSV PyPI tensorflow-gpu >= 2.5.0, < 2.5.1 2.5.1
OSV PyPI tensorflow >= 2.3.0, < 2.3.4; >= 2.4.0, < 2.4.3 2.3.4, 2.4.3
OSV PyPI tensorflow-cpu >= 2.3.0, < 2.3.4; >= 2.4.0, < 2.4.3 2.3.4, 2.4.3
OSV PyPI tensorflow-gpu >= 2.3.0, < 2.3.4; >= 2.4.0, < 2.4.3 2.3.4, 2.4.3

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 12 Aug 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Aug 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Aug 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Aug 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Aug 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.