Skip to content
OpenAdvisories
Low · 2.6 CVE-2019-16778 EUVD-2019-0142GHSA-844w-j86r-4x2jPYSEC-2019-209PYSEC-2019-227PYSEC-2019-234

Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow

Published Dec 16, 2019 · Updated Aug 5, 2024 · Assigned by GitHub_M

Description

In TensorFlow before 1.15, a heap buffer overflow in UnsortedSegmentSum can be produced when the Index template argument is int32. In this case data_size and num_segments fields are truncated from int64 to int32 and can produce negative numbers, resulting in accessing out of bounds heap memory. This is unlikely to be exploitable and was detected and fixed internally in TensorFlow 1.15 and 2.0.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow < 1.15 – < 1.15 1.15

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow < 1.15.0 1.15.0 GHSA-844w-j86r-4x2j
PyPI tensorflow >= 1.0.0, < 1.15.0 1.15.0 PYSEC-2019-209
PyPI tensorflow-cpu < 1.15.0 1.15.0 GHSA-844w-j86r-4x2j
PyPI tensorflow-cpu >= 1.0.0, < 1.15.0 1.15.0 PYSEC-2019-227
PyPI tensorflow-gpu < 1.15.0 1.15.0 GHSA-844w-j86r-4x2j
PyPI tensorflow-gpu >= 1.0.0, < 1.15.0 1.15.0 PYSEC-2019-234

References