PT-2022-23059

CVE-2022-35960

·

Published

2022-09-16

·

Updated

2026-07-13

Description by

CVSS 3.1
5.9
Medium
MetricsAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 2.10.0 TensorFlow versions 2.9.1 and earlier TensorFlow versions 2.8.1 and earlier TensorFlow versions 2.7.2 and earlier
Description The issue arises in core/kernels/list kernels.cc's TensorListReserve where num elements is assumed to be a tensor of size 1. When a num elements of more than 1 element is provided, then tf.raw ops.TensorListReserve fails the CHECK EQ in CheckIsAlignedAndSingleElement. This vulnerability has been reported by Kang Hong Jin from Singapore Management University.
Recommendations For versions prior to 2.10.0, update to TensorFlow 2.10.0 or later. For versions 2.9.1 and earlier, update to TensorFlow 2.9.1 or later. For versions 2.8.1 and earlier, update to TensorFlow 2.8.1 or later. For versions 2.7.2 and earlier, update to TensorFlow 2.7.2 or later. As a temporary workaround, consider avoiding the use of tf.raw ops.TensorListReserve with num elements of more than 1 element until a patch is available.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-V5XG-3Q2C-C2R4
BIT-TENSORFLOW-2022-35960
OPENSUSE-SU-2024:12355-1
PYSEC-2026-1036
PYSEC-2026-3243
PYSEC-2026-3370
Found an issue in the description? Have something to add? Feel free to write us 👾