{"id":"CVE-2020-26268","published":"2020-12-10T22:10:35Z","modified":"2024-08-04T15:56:03Z","title":"Write to immutable memory region in TensorFlow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"In affected versions of TensorFlow the tf.raw_ops.ImmutableConst operation returns a constant tensor created from a memory mapped file which is assumed immutable. However, if the type of the tensor is not an integral type, the operation crashes the Python interpreter as it tries to write to the memory area. If the file is too small, TensorFlow properly returns an error as the memory area has fewer bytes than what is needed for the tensor it creates. However, as soon as there are enough bytes, the above snippet causes a segmentation fault. This is because the allocator used to return the buffer data is not marked as returning an opaque handle since the needed virtual method is not overridden. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00212,"percentile":0.11679,"provenance":"source"},"cwes":[{"id":"CWE-471","name":"Modification of Assumed-Immutable Data (MAID)"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hhvc-g5hv-48c6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/c1e1fc899ad5f8c725dcbb6470069890b5060bc7","tags":["x_refsource_MISC"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":2.34},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 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.2"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<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.2"],"patched":["1.15.5","2.0.4","2.1.3","2.2.2","2.3.2"],"from":["GHSA-hhvc-g5hv-48c6","PYSEC-2020-255"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<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.2"],"patched":["1.15.5","2.0.4","2.1.3","2.2.2","2.3.2"],"from":["GHSA-hhvc-g5hv-48c6","PYSEC-2020-299"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<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.2"],"patched":["1.15.5","2.0.4","2.1.3","2.2.2","2.3.2"],"from":["GHSA-hhvc-g5hv-48c6","PYSEC-2020-334"],"provenance":"source"}],"summary":{"text":"A flaw in TensorFlow's tf.raw_ops.ImmutableConst operation causes it to write to a memory-mapped region that is assumed to be immutable when the requested tensor type is not an integral type. An attacker with local access and low privileges, acting without any user interaction, can trigger this write to crash the Python interpreter or cause a segmentation fault once the mapped file is large enough to hold the requested tensor.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:04Z"},"euvd":{"id":"EUVD-2020-0215","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2020-26268","children":[{"from":"CVE-2020-26268","to":"CVE-2021-29539","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/immutable_constant_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/c1e1fc899ad5f8c725dcbb6470069890b5060bc7","https://github.com/tensorflow/tensorflow/commit/4f663d4b8f0bec1b48da6fa091a7d29609980fa4"],"basis":"rarely changed file"}]},{"from":"CVE-2020-26268","to":"CVE-2021-41227","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/immutable_constant_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/c1e1fc899ad5f8c725dcbb6470069890b5060bc7","https://github.com/tensorflow/tensorflow/commit/1cb6bb6c2a6019417c9adaf9e6843ba75ee2580b","https://github.com/tensorflow/tensorflow/commit/3712a2d3455e6ccb924daa5724a3652a86f6b585"],"basis":"rarely changed file"}]}]}}