PyPI: tensorflow-rocm-enhanced
CVE-2020-15204
Safety vulnerability ID: SFTY-20200925-11716
Safety legacy ID: pyup.io-58216
Tensorflow-rocm-enhanced versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, and 2.3.1 include a fix for CVE-2020-15204: In eager mode, TensorFlow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 does not set the session state. Hence, calling "tf.raw_ops.GetSessionHandle" or "tf.raw_ops.GetSessionHandleV2" results in a null pointer dereference In linked snippet, in eager mode, "ctx->session_state()" returns "nullptr". Since code immediately dereferences this, we get a segmentation fault. The issue was patched in commit 9a133d73ae4b4664d22bd1aa6d654fec13c52ee1
Overview
Segfault in Tensorflow
Advisory
Tensorflow-rocm-enhanced versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, and 2.3.1 include a fix for CVE-2020-15204: In eager mode, TensorFlow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 does not set the session state. Hence, calling "tf.raw_ops.GetSessionHandle" or "tf.raw_ops.GetSessionHandleV2" results in a null pointer dereference In linked snippet, in eager mode, "ctx->session_state()" returns "nullptr". Since code immediately dereferences this, we get a segmentation fault. The issue was patched in commit 9a133d73ae4b4664d22bd1aa6d654fec13c52ee1
Affected Package
Also affects
---
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20200925-11716/CVE-2020-15204
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-q8gv-q7wr-9jf8
- https://github.com/tensorflow/tensorflow/commit/9a133d73ae4b4664d22bd1aa6d654fec13c52ee1
- https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1
- https://nvd.nist.gov/vuln/detail/CVE-2020-15204
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-284.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-319.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-127.yaml
- https://github.com/advisories/GHSA-q8gv-q7wr-9jf8
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
