CVE-2020-26269 Heap out of bounds read in filesystem glob matching in TensorFlow

High 7.5 Published Updated

An attacker can trigger a heap out-of-bounds read in TensorFlow's glob matching, potentially causing crashes or leaking memory.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-26269?

CVE-2020-26269 is a high-severity memory corruption vulnerability in Google Tensorflow, published on 10 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In TensorFlow release candidate versions 2.4.0rc*, the general implementation for matching filesystem paths to globbing pattern is vulnerable to an access out of bounds of the array holding the directories. There are multiple invariants and preconditions that are assumed by the parallel implementation of GetMatchingPaths but are not verified by the PRs introducing it (#40861 and #44310). Thus, we are completely rewriting the implementation to fully specify and validate these. This is patched in version 2.4.0. This issue only impacts master branch and the release candidates for TF version 2.4. The final release of the 2.4 release will be patched.

Weakness: CWE-125

Which versions are affected by CVE-2020-26269?

10 open source packages ship an affected version, including tensorflow, tensorflow-cpu and tensorflow-gpu. It affects 1 product.

PackageAffectedFixed in
tensorflow BitnamiFrom 2.4.0-rc02.4.0, 2.4.0, 2.4.0, 2.4.0, 2.4.0
tensorflow PyPIFrom 2.4.0rc02.4.0
tensorflow PyPIFrom 2.4.0rc02.4.0
tensorflow PyPIFrom 2.4.0rc02.4.0
tensorflow-cpu PyPIFrom 2.4.0rc02.4.0
tensorflow-cpu PyPIFrom 2.4.0rc02.4.0
4 more packages
tensorflow-cpu PyPIFrom 2.4.0rc02.4.0
tensorflow-gpu PyPIFrom 2.4.0rc02.4.0
tensorflow-gpu PyPIFrom 2.4.0rc02.4.0
tensorflow-gpu PyPIFrom 2.4.0rc02.4.0

Products include Google Tensorflow.

How do I fix CVE-2020-26269?

Upgrade tensorflow to 2.4.0 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2020-26269 being exploited?

There is no known exploitation of CVE-2020-26269 in the wild and no public exploit code.

All Google Tensorflow vulnerabilities

Sources

Also known as BIT-tensorflow-2020-26269, GHSA-9jjw-hf72-3mxw, PYSEC-2020-141, PYSEC-2020-300, PYSEC-2020-335.

Is CVE-2020-26269 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free