Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2022-41880

Tensorflow vulnerable to Out-of-Bounds Read
Back to all
CVE

CVE-2022-41880

Tensorflow vulnerable to Out-of-Bounds Read

Impact

When the BaseCandidateSamplerOp function  receives a value in true_classes larger than range_max, a heap oob vuln occurs.

tf.raw_ops.ThreadUnsafeUnigramCandidateSampler(
    true_classes=[[0x100000,1]],
    num_true = 2,
    num_sampled = 2,
    unique = False,
    range_max = 2,
    seed = 2,
    seed2 = 2)

Patches

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.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported by Yu Tian of Qihoo 360 AIVul Team.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
6.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H
C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Related Resources

No items found.

References

https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8w5g-3wcv-9g2j, https://nvd.nist.gov/vuln/detail/CVE-2022-41880, https://github.com/tensorflow/tensorflow/commit/b389f5c944cadfdfe599b3f1e4026e036f30d2d4, https://github.com/tensorflow/tensorflow, https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/candidatesamplerops.cc, https://pypi.org/project/tensorflow-gpu, https://github.com/advisories/GHSA-8w5g-3wcv-9g2j

Severity

9.1

CVSS Score
0
10

Basic Information

Base CVSS
9.1
EPSS Probability
0.0038%
EPSS Percentile
0.30051%
Introduced Version
2.10.0,0.12.0,2.9.0rc0,2.10.0rc0,1.15.0,2.5.0,2.9.0,1.2
Fix Available
2.10.1,2.8.4,2.9.3

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading