CVE-2022-21740

Tensorflow is an Open Source Machine Learning Framework. The implementation of `SparseCountSparseOutput` is vulnerable to a heap overflow. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:google:tensorflow:2.7.0:*:*:*:*:*:*:*
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*

History

05 May 2025, 17:17

Type Values Removed Values Added
References (CONFIRM) https://github.com/tensorflow/tensorflow/security/advisories/GHSA-44qp-9wwf-734r - Patch, Third Party Advisory () https://github.com/tensorflow/tensorflow/security/advisories/GHSA-44qp-9wwf-734r - Patch, Third Party Advisory
References (MISC) https://github.com/tensorflow/tensorflow/commit/2b7100d6cdff36aa21010a82269bc05a6d1cc74a - Patch, Third Party Advisory () https://github.com/tensorflow/tensorflow/commit/2b7100d6cdff36aa21010a82269bc05a6d1cc74a - Patch, Third Party Advisory
References (MISC) https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/count_ops.cc#L168-L273 - Exploit, Third Party Advisory () https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/count_ops.cc#L168-L273 - Exploit, Third Party Advisory
References (MISC) https://github.com/tensorflow/tensorflow/commit/adbbabdb0d3abb3cdeac69e38a96de1d678b24b3 - Patch, Third Party Advisory () https://github.com/tensorflow/tensorflow/commit/adbbabdb0d3abb3cdeac69e38a96de1d678b24b3 - Patch, Third Party Advisory

Information

Published : 2022-02-03 15:15

Updated : 2025-05-05 17:17


NVD link : CVE-2022-21740

Mitre link : CVE-2022-21740


JSON object : View

Products Affected

google

  • tensorflow
CWE
CWE-787

Out-of-bounds Write