CVE-2021-29521Incorrect Calculation of Buffer Size in Tensorflow

Severity
5.5MEDIUMNVD
CNA2.5
EPSS
0.0%
top 97.19%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 14
Latest updateMay 21

Description

TensorFlow is an end-to-end open source platform for machine learning. Specifying a negative dense shape in `tf.raw_ops.SparseCountSparseOutput` results in a segmentation fault being thrown out from the standard library as `std::vector` invariants are broken. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/8f7b60ee8c0206a2c99802e3a4d1bb55d2bc0624/tensorflow/core/kernels/count_ops.cc#L199-L213) assumes the first element of the dense shape is always positive and us

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages3 packages

NVDgoogle/tensorflow2.3.02.3.3+1
CVEListV5tensorflow/tensorflow< 2.3.3+1
PyPIintel/optimization_for_tensorflow2.3.02.3.3+2

Patches

🔴Vulnerability Details

4
GHSA
Segfault in SparseCountSparseOutput2021-05-21
OSV
Segfault in SparseCountSparseOutput2021-05-21
OSV
CVE-2021-29521: TensorFlow is an end-to-end open source platform for machine learning2021-05-14
CVEList
Segfault in SparseCountSparseOutput2021-05-14

📋Vendor Advisories

1
Debian
CVE-2021-29521: tensorflow - TensorFlow is an end-to-end open source platform for machine learning. Specifyin...2021
CVE-2021-29521 — Incorrect Calculation of Buffer Size | cvebase