Security mailing lists by PureSourceCode

CVE-2020-26268

MEDIUM 4.4CVSS 3.1

Write to immutable memory region in TensorFlow

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.

Published
10 Dec 2020
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-471
Also known as
BIT-tensorflow-2020-26268GHSA-hhvc-g5hv-48c6PYSEC-2020-255PYSEC-2020-299PYSEC-2020-334
Sources
NVDJSONOSV GHSA-hhvc-g5hv-48c6JSONOSV PYSEC-2020-255JSONOSV PYSEC-2020-299JSONOSV PYSEC-2020-334JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 4.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
OSV GitHub CVSS 3.1 MEDIUM 4.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 3.6 AV:L/AC:L/Au:N/C:N/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
< 1.15.5 1.15.5
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
>= 2.0.0, < 2.0.4 2.0.4
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
>= 2.1.0, < 2.1.3 2.1.3
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
>= 2.2.0, < 2.2.2 2.2.2
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
>= 2.3.0, < 2.3.2 2.3.2
OSV PyPI tensorflow < 1.15.5 1.15.5
OSV PyPI tensorflow >= 2.0.0, < 2.0.4 2.0.4
OSV PyPI tensorflow >= 2.1.0, < 2.1.3 2.1.3
OSV PyPI tensorflow >= 2.2.0, < 2.2.2 2.2.2
OSV PyPI tensorflow >= 2.3.0, < 2.3.2 2.3.2
OSV PyPI tensorflow-cpu < 1.15.5 1.15.5
OSV PyPI tensorflow-cpu >= 2.0.0, < 2.0.4 2.0.4
OSV PyPI tensorflow-cpu >= 2.1.0, < 2.1.3 2.1.3
OSV PyPI tensorflow-cpu >= 2.2.0, < 2.2.2 2.2.2
OSV PyPI tensorflow-cpu >= 2.3.0, < 2.3.2 2.3.2
OSV PyPI tensorflow-gpu < 1.15.5 1.15.5
OSV PyPI tensorflow-gpu >= 2.0.0, < 2.0.4 2.0.4
OSV PyPI tensorflow-gpu >= 2.1.0, < 2.1.3 2.1.3
OSV PyPI tensorflow-gpu >= 2.2.0, < 2.2.2 2.2.2
OSV PyPI tensorflow-gpu >= 2.3.0, < 2.3.2 2.3.2
OSV PyPI tensorflow < 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 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
OSV PyPI tensorflow-cpu < 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 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
OSV PyPI tensorflow-gpu < 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 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 10 Dec 2020)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Dec 2020)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Dec 2020)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Dec 2020)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Dec 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.