
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2022-21740 affects TensorFlow, an Open Source Machine Learning Framework. The implementation of SparseCountSparseOutput was found to be vulnerable to a heap overflow. The issue was discovered and reported by Faysal Hossain Shezan from the University of Virginia, and was publicly disclosed on February 2, 2022. The vulnerability affects TensorFlow versions prior to 2.8.0, including versions 2.5.x, 2.6.x, and 2.7.x (GitHub Advisory).
The vulnerability exists in the implementation of the SparseCountSparseOutput operation in TensorFlow. The issue manifests as a heap overflow vulnerability that can be triggered when processing specific input parameters. A proof of concept demonstrates the vulnerability can be exploited using negative indices: tf.raw_ops.SparseCountSparseOutput(indices=[[-1,-1]], values=[2], dense_shape=[1, 1], weights=[1], binary_output=True, minlength=-1, maxlength=-1, name=None) (GitHub Advisory).
The vulnerability could potentially lead to heap overflow conditions in affected TensorFlow installations. This type of vulnerability typically can result in program crashes, memory corruption, or potentially arbitrary code execution, though specific impact details were not publicly disclosed (NVD).
The vulnerability has been patched in multiple versions of TensorFlow. Users should upgrade to TensorFlow version 2.8.0 or apply the specific security patches available in versions 2.7.1, 2.6.3, and 2.5.3. The fix was implemented through two commits: 2b7100d6cdff36aa21010a82269bc05a6d1cc74a and adbbabdb0d3abb3cdeac69e38a96de1d678b24b3 (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."