PT-2022-16102

CVE-2022-23585

·

Published

2022-02-04

·

Updated

2026-07-09

Description by

CVSS 3.1
4.3
Medium
MetricsAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 2.8.0 TensorFlow version 2.7.1 TensorFlow version 2.6.3 TensorFlow version 2.5.3
Description When decoding PNG images, TensorFlow can produce a memory leak if the image is invalid. After calling png::CommonInitDecode(..., &decode), the decode value contains allocated buffers which can only be freed by calling png::CommonFreeDecode(&decode). However, several error cases in the function implementation invoke the OP REQUIRES macro, which immediately terminates the execution of the function without allowing for the memory to be freed.
Recommendations For TensorFlow versions prior to 2.8.0, update to version 2.8.0 or later to resolve the issue. For TensorFlow version 2.7.1, update to a newer version that includes the fix, such as version 2.8.0. For TensorFlow version 2.6.3, update to a newer version that includes the fix, such as version 2.8.0. For TensorFlow version 2.5.3, update to a newer version that includes the fix, such as version 2.8.0. As a temporary workaround, consider disabling the decoding of PNG images until a patch is available.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-FQ6P-6334-8GR4
BIT-TENSORFLOW-2022-23585
OPENSUSE-SU-2024:12116-1
PYSEC-2022-149
PYSEC-2022-94
PYSEC-2026-3174
Found an issue in the description? Have something to add? Feel free to write us 👾