Vulnerability Details : CVE-2021-41202
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.
Products affected by CVE-2021-41202
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-41202
0.05%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 12 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-41202
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
2.1
|
LOW | AV:L/AC:L/Au:N/C:N/I:N/A:P |
3.9
|
2.9
|
NIST | |
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
1.8
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2021-41202
-
When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.Assigned by: security-advisories@github.com (Primary)
References for CVE-2021-41202
-
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-xrqm-fpgr-6hhx
Overflow/crash in `tf.range` · Advisory · tensorflow/tensorflow · GitHubThird Party Advisory
-
https://github.com/tensorflow/tensorflow/commit/1b0e0ec27e7895b9985076eab32445026ae5ca94
Merge pull request #51711 from yongtang:46899-tf.range · tensorflow/tensorflow@1b0e0ec · GitHubPatch;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/issues/46889
tf.keras.backend.arange crash (abort) when start is large · Issue #46889 · tensorflow/tensorflow · GitHubIssue Tracking;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/issues/46912
`tf.sparse.eye` crashes(aborts) when num_rows contains large number · Issue #46912 · tensorflow/tensorflow · GitHubIssue Tracking;Third Party Advisory
-
https://github.com/tensorflow/tensorflow/commit/6d94002a09711d297dbba90390d5482b76113899
Merge pull request #51359 from yongtang:46913-range-overflow · tensorflow/tensorflow@6d94002 · GitHubPatch;Third Party Advisory
Jump to