What’s Vulnerable › Vulnerabilities

CVE-2019-16778: Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow

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

How to fix

Upgrade to a fixed version: tensorflow 1.15.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2019-16778 or the next vulnerability affects your stack