{"id":"CVE-2020-15209","published":"2020-09-25T18:45:35Z","modified":"2024-08-04T13:08:22Z","title":"Null pointer dereference in tensorflow-lite","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, a crafted TFLite model can force a node to have as input a tensor backed by a `nullptr` buffer. This can be achieved by changing a buffer index in the flatbuffer serialization to convert a read-only tensor to a read-write one. The runtime assumes that these buffers are written to before a possible read, hence they are initialized with `nullptr`. However, by changing the buffer index for a tensor and implicitly converting that tensor to be a read-write one, as there is nothing in the model that writes to it, we get a null pointer dereference. The issue is patched in commit 0b5662bc, 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.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.008,"percentile":0.57496,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-qh32-6jjc-qprm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/0b5662bc2be13a8c8f044d925d87fb6e56247cd8","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":11.5},{"name":"CVSS severity","points":4.13}]},"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-qh32-6jjc-qprm","PYSEC-2020-132"],"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-qh32-6jjc-qprm","PYSEC-2020-289"],"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-qh32-6jjc-qprm","PYSEC-2020-324"],"provenance":"source"}],"summary":{"text":"A null pointer dereference in the TensorFlow Lite runtime, part of the tensorflow product, occurs when a crafted TFLite model causes a node to receive a tensor backed by a null buffer. An attacker who can supply a maliciously crafted model, by altering buffer indices in the flatbuffer serialization so a read-only tensor becomes read-write, can crash the process by triggering this condition, and the attack is reachable over the network with no authentication or user interaction, though it requires a specific pattern of model manipulation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:22Z"},"euvd":{"id":"EUVD-2020-0205","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2020-15209","children":[{"from":"CVE-2020-15209","to":"CVE-2020-15210","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/lite/BUILD","tensorflow/lite/core/subgraph.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/0b5662bc2be13a8c8f044d925d87fb6e56247cd8","https://github.com/tensorflow/tensorflow/commit/d58c96946b2880991d63d1dacacb32f0a4dfa453","https://github.com/tensorflow/tensorflow/commit/094329d0dcb8290bed2b1ee420934971f422c86d"],"basis":"shared function","functions":["cc_test"]}]},{"from":"CVE-2020-15209","to":"CVE-2021-29591","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/lite/BUILD","tensorflow/lite/core/subgraph.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/0b5662bc2be13a8c8f044d925d87fb6e56247cd8","https://github.com/tensorflow/tensorflow/commit/9c1dc920d8ffb4893d6c9d27d1f039607b326743","https://github.com/tensorflow/tensorflow/commit/c6173f5fe66cdbab74f4f869311fe6aae2ba35f4"],"basis":"shared function","functions":["cc_test"]}]},{"from":"CVE-2020-15209","to":"CVE-2021-29592","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/lite/core/subgraph.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/0b5662bc2be13a8c8f044d925d87fb6e56247cd8","https://github.com/tensorflow/tensorflow/commit/f8378920345f4f4604202d4ab15ef64b2aceaa16"],"basis":"shared function","functions":["Invoke"]}]}]}}