Skip to content

Float cast overflow undefined behavior

Low severity GitHub Reviewed Published Oct 20, 2020 in tensorflow/tensorflow • Updated Feb 1, 2023

Package

pip tensorflow (pip)

Affected versions

< 2.4.0

Patched versions

2.4.0
pip tensorflow-cpu (pip)
< 2.4.0
2.4.0
pip tensorflow-gpu (pip)
< 2.4.0
2.4.0

Description

Impact

When the boxes argument of tf.image.crop_and_resize has a very large value, the CPU kernel implementation receives it as a C++ nan floating point value. Attempting to operate on this is undefined behavior which later produces a segmentation fault.

Patches

We have patched the issue in c0319231333f0f16e1cc75ec83660b01fedd4182 and will release TensorFlow 2.4.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported in #42129

References

@mihaimaruseac mihaimaruseac published to tensorflow/tensorflow Oct 20, 2020
Published by the National Vulnerability Database Oct 21, 2020
Reviewed Nov 13, 2020
Published to the GitHub Advisory Database Nov 13, 2020
Last updated Feb 1, 2023

Severity

Low
3.7
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Weaknesses

CVE ID

CVE-2020-15266

GHSA ID

GHSA-xwhf-g6j5-j5gc

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.