Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. tensorflow-cpu
  4. ›
  5. CVE-2020-26266

CVE-2020-26266: Uninitialized memory access in TensorFlow

December 10, 2020 (updated October 28, 2024)

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;
};

References

  • github.com/advisories/GHSA-qhxx-j73r-qpm2
  • github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-297.yaml
  • github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-332.yaml
  • github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-254.yaml
  • github.com/tensorflow/tensorflow
  • github.com/tensorflow/tensorflow/commit/ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2
  • github.com/tensorflow/tensorflow/security/advisories/GHSA-qhxx-j73r-qpm2
  • nvd.nist.gov/vuln/detail/CVE-2020-26266

Code Behaviors & Features

Detect and mitigate CVE-2020-26266 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.15.5, all versions starting from 2.0.0 before 2.0.4, all versions starting from 2.1.0 before 2.1.3, all versions starting from 2.2.0 before 2.2.2, all versions starting from 2.3.0 before 2.3.2

Fixed versions

  • 1.15.5
  • 2.0.4
  • 2.1.3
  • 2.2.2
  • 2.3.2

Solution

Upgrade to versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-908: Use of Uninitialized Resource

Source file

pypi/tensorflow-cpu/CVE-2020-26266.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:10 +0000.