5.9medium
Null dereference on MLIR on empty function attributes in TensorFlow
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.49% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-fqxc-pvf8-2w9vBIT-TENSORFLOW-2022-36000PYSEC-2026-3177PYSEC-2026-3322PYSEC-2026-991
Description
TensorFlow is an open source platform for machine learning. When `mlir::tfg::ConvertGenericFunctionToFunctionDef` is given empty function attributes, it gives a null dereference. We have patched the issue in GitHub commit aed36912609fc07229b4d0a7b44f3f48efc00fd0. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | < 2.7.2, >= 2.8.0, < 2.8.1, >= 2.9.0, < 2.9.1 | CVE List |
| tensorflow (PyPI) | before 2.7.2, from 2.8.0 before 2.8.1, from 2.9.0 before 2.9.1 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-cpu (PyPI) | before 2.7.2, from 2.8.0 before 2.8.1, from 2.9.0 before 2.9.1 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-gpu (PyPI) | before 2.7.2, from 2.8.0 before 2.8.1, from 2.9.0 before 2.9.1 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | before 2.7.2, from 2.8.0 before 2.8.1, from 2.9.0 before 2.9.1, 2.10 | NVD |
| tensorflow (Bitnami) | before 2.7.2, from 2.8.0 before 2.8.1, from 2.9.0 before 2.9.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high 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. When `mlir::tfg::ConvertGenericFunctionToFunctionDef` is given empty function attributes, it gives a null dereference. We have patched the issue in GitHub commit aed36912609fc07229b4d0a7b44f3f48efc00fd0. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.
GitHub Advisory Database
Impact
Eig can be fed an incorrect Tout input, resulting in a CHECK fail that can trigger a denial of service attack.
import tensorflow as tf
import numpy as np
arg_0=tf.constant(value=np.random.random(size=(2, 2)), shape=(2, 2), dtype=tf.float32)
arg_1=tf.complex128
arg_2=True
arg_3=''
tf.raw_ops.Eig(input=arg_0, Tout=arg_1, compute_v=arg_2, name=arg_3)
Patches
We have patched the issue in GitHub commit aed36912609fc07229b4d0a7b44f3f48efc00fd0.
The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by 刘力源, Information System & Security and Countermeasures Experiments Center, Beijing Institute of Technology.
NVD (es)
TensorFlow es una plataforma de código abierto para el aprendizaje automático. Cuando "mlir::tfg::ConvertGenericFunctionToFunctionDef" recibe atributos de función vacíos, da una derivación nula. Hemos parcheado el problema en el commit de GitHub aed36912609fc07229b4d0a7b44f3f48efc00fd0. La corrección será incluida en TensorFlow versión 2.10.0. También seleccionaremos este compromiso en TensorFlow versión 2.9.1, TensorFlow versión 2.8.1, y TensorFlow versión 2.7.2, ya que estos también están afectados y todavía están en el rango admitido. No se presentan mitigaciones conocidas para este problema
References
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-fqxc-pvf8-2w9v | advisory, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/commit/aed36912609fc07229b4d0a7b44f3f48efc00fd0 | advisory, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-36000 | advisory, web | |
| https://github.com/tensorflow/tensorflow | package | |
| https://github.com/tensorflow/tensorflow/releases/tag/v2.10.0 | web | |
| https://pypi.org/project/tensorflow | package | |
| https://github.com/advisories/GHSA-fqxc-pvf8-2w9v | advisory | |
| https://pypi.org/project/tensorflow-cpu | package | |
| https://pypi.org/project/tensorflow-gpu | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-36000 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fqxc-pvf8-2w9v changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2022-36000 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3177 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-3322 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-991 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2022-36000 changed 2026-09-08 | Apache-2.0 |