CVE-2021-41202CWE-681

Overflow/crash in `tf.range`

Medium · published November 5, 2021

CVSS v3.1
5.5
EPSS
0%
Percentile
10.5
In the wild
Unconfirmed
What it is

TensorFlow is an open source platform for machine learning. In affected versions while calculating the size of the output within the `tf.range` kernel, there is a conditional statement of type `int64 = condition ? int64 : double`. Due to C++ implicit conversion rules, both branches of the condition will be cast to `double` and the result would be truncated before the assignment. This result in overflows. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00209 · 10.5th percentile
Weakness
CWE-681 · Incorrect Conversion between Numeric Types
Published
2021-11-05T21:45Z
EPSS history
Timeline
  • 05 NOV 21:45Z
    Overflow/crash in `tf.range`
    cvelistv5