CVE-2022-41880: ThreadUnsafeUnigramCandidateSampler Heap out of bounds in Tensorflow
TensorFlow is an open source platform for machine learning. When the BaseCandidateSamplerOp function receives a value in trueclasses larger than rangemax, a heap oob read occurs. We have patched the issue in GitHub commit b389f5c944cadfdfe599b3f1e4026e036f30d2d4. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.11Patch b389f5c944cadfdfe599b3f1e4026e036f30d2d4 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.10.1Patch b389f5c944cadfdfe599b3f1e4026e036f30d2d4 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.9.3Patch b389f5c944cadfdfe599b3f1e4026e036f30d2d4 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.8.4Patch b389f5c944cadfdfe599b3f1e4026e036f30d2d4
Event History
Frequently Asked Questions
What is CVE-2022-41880?
CVE-2022-41880 is a vulnerability in TensorFlow where a heap out-of-bounds read occurs in the `BaseCandidateSamplerOp` function when receiving a value in `true_classes` larger than `range_max`.
What is the severity of CVE-2022-41880?
CVE-2022-41880 has a severity rating of 9.1 (Critical).
Which versions of TensorFlow are affected by CVE-2022-41880?
TensorFlow versions up to and including 2.8.4, versions 2.9.0 to 2.9.3, and version 2.10.0 are affected by CVE-2022-41880.
How can I fix CVE-2022-41880?
To fix CVE-2022-41880, you should update TensorFlow to a version that includes the patch, such as the commit b389f5c944cadfdfe599b3f1e4026e036f30d2d4 on GitHub.
Is there any additional information available about CVE-2022-41880?
Yes, you can find more information about CVE-2022-41880 in the following references: [GitHub commit](https://github.com/tensorflow/tensorflow/commit/b389f5c944cadfdfe599b3f1e4026e036f30d2d4), [GitHub Security Advisory](https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8w5g-3wcv-9g2j).