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 package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | >= 2.10.0, < 2.10.1, >= 2.9.0, < 2.9.3, < 2.8.4 | CVE List |
| tensorflow (PyPI) | before 2.8.4, from 2.9.0 before 2.9.3, from 2.10.0 before 2.10.1 | GitHub 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.1 | GitHub 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.1 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | before 2.8.4, from 2.9.0 before 2.9.3, 2.10.0 | NVD |
| tensorflow (Bitnami) | before 2.8.4, from 2.9.0 before 2.9.3, from 2.10.0 before 2.10.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| PyPA Advisory Database | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
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
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-frqp-wp83-qggv | advisory, patch, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/commit/a65411a1d69edfb16b25907ffb8f73556ce36bb7 | advisory, patch, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/utils/functions.cc#L221 | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-41910 | advisory, web | |
| https://github.com/tensorflow/tensorflow | package | |
| https://pypi.org/project/tensorflow | package | |
| https://github.com/advisories/GHSA-frqp-wp83-qggv | advisory | |
| https://pypi.org/project/tensorflow-cpu | package | |
| https://pypi.org/project/tensorflow-gpu | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-41910 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-frqp-wp83-qggv changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2022-41910 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3178 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-3323 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-992 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2022-41910 changed 2026-09-08 | Apache-2.0 |