CVE-2020-26266
JSON

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 packageVersionsReported 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.2CVE 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 ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2GitHub 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 ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2GitHub 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 ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2GitHub Advisory Database, PyPA Advisory Database
google tensorflowbefore 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.2NVD
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.2Bitnami Vulnerability Database

All scores

GitHub_M4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
GitHub4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
NVD4.6medium CVSS:2.0AV:L/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasemedium 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.&#xa0;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.&#xa0;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

SourceRecordLicence
CVE ListCVE-2020-26266 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-qhxx-j73r-qpm2 changed 2026-07-08CC-BY-4.0
NVDCVE-2020-26266 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2020-254 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2020-297 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2020-332 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2020-26266 changed 2026-09-08Apache-2.0