4.4medium
Uninitialized memory access in Eigen types in TensorFlow
- Severity
- 4.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qhxx-j73r-qpm2BIT-TENSORFLOW-2020-26266PYSEC-2020-254PYSEC-2020-297PYSEC-2020-332
Description
In affected versions of TensorFlow under certain cases a saved model can trigger use of uninitialized values during code execution. This is caused by having tensor buffers be filled with the default value of the type but forgetting to default initialize the quantized floating point types in Eigen. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | < 1.15.5, >= 2.0.0, < 2.0.4, >= 2.1.0, < 2.1.3, >= 2.2.0, < 2.2.2, >= 2.3.0, < 2.3.2 | CVE List |
| tensorflow (PyPI) | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2, before ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-cpu (PyPI) | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2, before ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-gpu (PyPI) | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2, before ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2 | NVD |
| tensorflow (Bitnami) | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| GitHub | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | 4.6medium CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
In affected versions of TensorFlow under certain cases a saved model can trigger use of uninitialized values during code execution. This is caused by having tensor buffers be filled with the default value of the type but forgetting to default initialize the quantized floating point types in Eigen. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
GitHub Advisory Database
Impact
Under certain cases, a saved model can trigger use of uninitialized values during code execution. This is caused by having tensor buffers be filled with the default value of the type but forgetting to default initialize the quantized floating point types in Eigen:
struct QUInt8 {
QUInt8() {}
// ...
uint8_t value;
};
struct QInt16 {
QInt16() {}
// ...
int16_t value;
};
struct QUInt16 {
QUInt16() {}
// ...
uint16_t value;
};
struct QInt32 {
QInt32() {}
// ...
int32_t value;
};
Patches
We have patched the issue in GitHub commit ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2 and will release TensorFlow 2.4.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.
Since this issue also impacts TF versions before 2.4, we will patch all releases between 1.15 and 2.3 inclusive.
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)
En las versiones afectadas de TensorFlow, en determinados casos, un modelo guardado puede activar el uso de valores no inicializados durante la ejecución del código. Esto es debido a que los búferes de tensor se llenan con el valor predeterminado del tipo, pero se olvidan de inicializar por defecto los tipos de punto flotante cuantificados en Eigen. Esto es corregido en las versiones 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 y 2.4.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26266 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qhxx-j73r-qpm2 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-26266 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-254 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-297 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-332 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2020-26266 changed 2026-09-08 | Apache-2.0 |