CVE-2022-41880: ThreadUnsafeUnigramCandidateSampler Heap out of bounds in Tensorflow

Published Nov 18, 2022
·
Updated

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

3 affected components
Google TensorFlow<2.8.4
Google TensorFlow>=2.9.0<2.9.3
Google TensorFlow=2.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade TensorFlow to a version that resolves this vulnerability.

    Fixed in 2.11Patch b389f5c944cadfdfe599b3f1e4026e036f30d2d4
  2. Upgrade

    Upgrade TensorFlow to a version that resolves this vulnerability.

    Fixed in 2.10.1Patch b389f5c944cadfdfe599b3f1e4026e036f30d2d4
  3. Upgrade

    Upgrade TensorFlow to a version that resolves this vulnerability.

    Fixed in 2.9.3Patch b389f5c944cadfdfe599b3f1e4026e036f30d2d4
  4. Upgrade

    Upgrade TensorFlow to a version that resolves this vulnerability.

    Fixed in 2.8.4Patch b389f5c944cadfdfe599b3f1e4026e036f30d2d4

Event History

Nov 18, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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`.

2

What is the severity of CVE-2022-41880?

CVE-2022-41880 has a severity rating of 9.1 (Critical).

3

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.

4

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.

5

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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203