CVE-2021-41195
Summary
| CVE | CVE-2021-41195 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-11-05 20:15:00 UTC |
| Updated | 2021-11-09 13:44:00 UTC |
| Description | TensorFlow is an open source platform for machine learning. In affected versions the implementation of `tf.math.segment_*` operations results in a `CHECK`-fail related abort (and denial of service) if a segment id in `segment_ids` is large. This is similar to CVE-2021-29584 (and similar other reported vulnerabilities in TensorFlow, localized to specific APIs): the implementation (both on CPU and GPU) computes the output shape using `AddDim`. However, if the number of elements in the tensor overflows an `int64_t` value, `AddDim` results in a `CHECK` failure which provokes a `std::abort`. Instead, code should use `AddDimWithStatus`. 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. |
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|
| Application |
Google |
Tensorflow |
All |
All |
All |
All |
References
| Reference | Source | Link | Tags |
|---|
| Crash in `tf.math.segment_*` operations · Advisory · tensorflow/tensorflow · GitHub |
CONFIRM |
github.com |
|
| tf.math.segment_max/min/mean/sun/prod crashes(aborts) when segment_ids is large · Issue #46888 · tensorflow/tensorflow · GitHub |
MISC |
github.com |
|
| Fix tf.math.segment_max/min/mean/sun/prod crashes(aborts) when segment_ids is large by yongtang · Pull Request #51733 · tensorflow/tensorflow · GitHub |
MISC |
github.com |
|
| Merge pull request #51733 from yongtang:46888-tf.math.segment_ · tensorflow/tensorflow@e9c81c1 · GitHub |
MISC |
github.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 980161 Python (pip) Security Update for tensorflow-gpu (GHSA-cq76-mxrc-vchh)