{"id":"CVE-2020-15190","published":"2020-09-25T18:35:13Z","modified":"2024-08-04T13:08:22Z","title":"Segfault in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, the `tf.raw_ops.Switch` operation takes as input a tensor and a boolean and outputs two tensors. Depending on the boolean value, one of the tensors is exactly the input tensor whereas the other one should be an empty tensor. However, the eager runtime traverses all tensors in the output. Since only one of the tensors is defined, the other one is `nullptr`, hence we are binding a reference to `nullptr`. This is undefined behavior and reported as an error if compiling with `-fsanitize=null`. In this case, this results in a segmentation fault The issue is patched in commit da8558533d925694483d2c136a9220d6d49d843c, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00943,"percentile":0.61894,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-4g9f-63rx-5cw4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/commit/da8558533d925694483d2c136a9220d6d49d843c","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"priority":{"score":16.1,"factors":[{"name":"EPSS percentile","points":12.38},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 1.15.4",">= 2.0.0, < 2.0.3",">= 2.1.0, < 2.1.2",">= 2.2.0, < 2.2.1",">= 2.3.0, < 2.3.1"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<1.15.4",">=2.0.0, <2.0.3",">=2.1.0, <2.1.2",">=2.2.0, <2.2.1",">=2.3.0, <2.3.1"],"patched":["1.15.4","2.0.3","2.1.2","2.2.1","2.3.1"],"from":["GHSA-4g9f-63rx-5cw4","PYSEC-2020-113"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<1.15.4",">=2.0.0, <2.0.3",">=2.1.0, <2.1.2",">=2.2.0, <2.2.1",">=2.3.0, <2.3.1"],"patched":["1.15.4","2.0.3","2.1.2","2.2.1","2.3.1"],"from":["GHSA-4g9f-63rx-5cw4","PYSEC-2020-270"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<1.15.4",">=2.0.0, <2.0.3",">=2.1.0, <2.1.2",">=2.2.0, <2.2.1",">=2.3.0, <2.3.1"],"patched":["1.15.4","2.0.3","2.1.2","2.2.1","2.3.1"],"from":["GHSA-4g9f-63rx-5cw4","PYSEC-2020-305"],"provenance":"source"}],"summary":{"text":"In TensorFlow's eager runtime, the tf.raw_ops.Switch operation mishandles its outputs: when the boolean input selects one branch, the runtime still traverses both outputs, dereferencing an undefined (null) tensor and causing a null pointer dereference. An attacker with network access and no privileges or user interaction can trigger this to crash the process via a segmentation fault, resulting in availability impact only, with no confidentiality or integrity effects.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:28Z"},"euvd":{"id":"EUVD-2020-0186","exploited":false,"provenance":"source"}}