PT-2022-26112
CVE-2022-41880
·
Published
2022-11-18
·
Updated
2026-07-13
Description by
CVSS 3.1
6.8
MediumMetricsAV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H
Name of the Vulnerable Software and Affected Versions
TensorFlow versions prior to 2.11
TensorFlow versions 2.10.1, 2.9.3, and 2.8.4
Description
The issue occurs when the
BaseCandidateSamplerOp function receives a value in true classes larger than range max, resulting in a heap out-of-bounds read. This can be triggered by calling the tf.raw ops.ThreadUnsafeUnigramCandidateSampler function with a true classes value exceeding the range max parameter.Recommendations
For TensorFlow versions prior to 2.11, update to version 2.11 or later.
For TensorFlow version 2.10.1, apply the patch from GitHub commit b389f5c944cadfdfe599b3f1e4026e036f30d2d4.
For TensorFlow version 2.9.3, apply the patch from GitHub commit b389f5c944cadfdfe599b3f1e4026e036f30d2d4.
For TensorFlow version 2.8.4, apply the patch from GitHub commit b389f5c944cadfdfe599b3f1e4026e036f30d2d4.
As a temporary workaround, consider restricting the input values for
true classes to prevent them from exceeding the range max value.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾