Out-of-bounds Read in Google Tensorflow
CVE-2021-37635
TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of sparse reduction operations in TensorFlow can trigger accesses outside of bounds of heap allocated data. The [implementation](https://github.com/tensorflow/tensorflow/blob/a1bc56203f21a5a4995311825ffaba7a670d7747/tensorflow/core/kernels/sparse_reduce_op.cc#L217-L228) fails to validate that each reduction group does not overflow and that each corresponding index does not point to outside the bounds of the input tensor. We have patched the issue in GitHub commit 87158f43f05f2720a374f3e6d22a7aaa3a33f750. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H.
EPSS exploit prediction
EPSS: 0.002 (5.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 5th percentile — 5.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: 0.000
Affected products
- Google Tensorflow — versions 2.5.0, 2.6.0
- Tensorflow — versions >= 2.5.0, < 2.5.1, >= 2.4.0, < 2.4.3, < 2.3.4
Weakness classification (CWE)
References
- github.com/tensorflow/tensorflow/security/advisories/GHSA-cgfm-62j4-v4rf (Third Party Advisory)
- github.com/tensorflow/tensorflow/commit/87158f43f05f2720a374f3e6d22a7aaa3a33f750 (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-37635?
- CVE-2021-37635 is a high-severity vulnerability in Google Tensorflow, classified under Out-of-bounds Read. CVSS score: 7.3/10. Published 2021-08-12.
- How severe is CVE-2021-37635?
- High severity. CVSS v3 base score is 7.3 out of 10.