CVE-2022-41910
JSON

4.8medium

Heap out of bounds read in `QuantizeAndDequantizeV2` in Tensorflow

Severity
4.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.46% (higher than 32% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-frqp-wp83-qggvBIT-TENSORFLOW-2022-41910PYSEC-2026-3178PYSEC-2026-3323PYSEC-2026-992

Description

TensorFlow is an open source platform for machine learning. The function MakeGrapplerFunctionItem takes arguments that determine the sizes of inputs and outputs. If the inputs given are greater than or equal to the sizes of the outputs, an out-of-bounds memory read or a crash is triggered. We have patched the issue in GitHub commit a65411a1d69edfb16b25907ffb8f73556ce36bb7. The fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.8.4, 2.9.3, and 2.10.1.

Affected

Product or packageVersionsReported by
tensorflow tensorflow>= 2.10.0, < 2.10.1, >= 2.9.0, < 2.9.3, < 2.8.4CVE List
tensorflow (PyPI)before 2.8.4, from 2.9.0 before 2.9.3, from 2.10.0 before 2.10.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-cpu (PyPI)before 2.8.4, from 2.9.0 before 2.9.3, from 2.10.0 before 2.10.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-gpu (PyPI)before 2.8.4, from 2.9.0 before 2.9.3, from 2.10.0 before 2.10.1GitHub Advisory Database, PyPA Advisory Database
google tensorflowbefore 2.8.4, from 2.9.0 before 2.9.3, 2.10.0NVD
tensorflow (Bitnami)before 2.8.4, from 2.9.0 before 2.9.3, from 2.10.0 before 2.10.1Bitnami Vulnerability Database

All scores

GitHub_M4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H
GitHub4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
PyPA Advisory Database4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

TensorFlow is an open source platform for machine learning. The function MakeGrapplerFunctionItem takes arguments that determine the sizes of inputs and outputs. If the inputs given are greater than or equal to the sizes of the outputs, an out-of-bounds memory read or a crash is triggered. We have patched the issue in GitHub commit a65411a1d69edfb16b25907ffb8f73556ce36bb7. The fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.8.4, 2.9.3, and 2.10.1.

GitHub Advisory Database
Impact

The function MakeGrapplerFunctionItem takes arguments that determine the sizes of inputs and outputs. If the inputs given are greater than or equal to the sizes of the outputs, an out-of-bounds memory read or a crash is triggered.

import tensorflow as tf
@tf.function
def test():
    tf.raw_ops.QuantizeAndDequantizeV2(input=[2.5],
    								   input_min=[1.0],
    								   input_max=[10.0],
    								   signed_input=True,
    								   num_bits=1,
    								   range_given=True,
    								   round_mode='HALF_TO_EVEN',
    								   narrow_range=True,
    								   axis=0x7fffffff)
test()
Patches

We have patched the issue in GitHub commit 7b174a0f2e40ff3f3aa957aecddfd5aaae35eccb.

The fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.10.1.

For more information

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

NVD (es)

TensorFlow es una plataforma de código abierto para aprendizaje automático. La función MakeGrapplerFunctionItem toma argumentos que determinan los tamaños de entradas y salidas. Si las entradas proporcionadas son mayores o iguales que los tamaños de las salidas, se desencadena una lectura de memoria fuera de los límites o un bloqueo. Hemos solucionado el problema en el commit de GitHub a65411a1d69edfb16b25907ffb8f73556ce36bb7. La solución se incluirá en TensorFlow 2.11.0. También seleccionaremos este commit en TensorFlow 2.8.4, 2.9.3 y 2.10.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-41910 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-frqp-wp83-qggv changed 2026-07-13CC-BY-4.0
NVDCVE-2022-41910 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-3178 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-3323 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-992 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2022-41910 changed 2026-09-08Apache-2.0