Heap out of bounds read in filesystem glob matching in TensorFlow
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
tensorflowPyPI | >= 2.4.0rc0, < 2.4.0 | 2.4.0 |
tensorflow-cpuPyPI | >= 2.4.0rc0, < 2.4.0 | 2.4.0 |
tensorflow-gpuPyPI | >= 2.4.0rc0, < 2.4.0 | 2.4.0 |
Affected products
5- osv-coords4 versions
>= 2.4.0-rc0, < 2.4.0+ 3 more
- (no CPE)range: >= 2.4.0-rc0, < 2.4.0
- (no CPE)range: >= 2.4.0rc0, < 2.4.0
- (no CPE)range: >= 2.4.0rc0, < 2.4.0
- (no CPE)range: >= 2.4.0rc0, < 2.4.0
- Range: .4.0rc*
Patches
Vulnerability mechanics
References
11- github.com/advisories/GHSA-9jjw-hf72-3mxwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-26269ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-300.yamlghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-335.yamlghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-141.yamlghsaWEB
- github.com/tensorflow/tensorflow/blob/458c6260265c46ebaf18052d6c61aea4b6b40926/tensorflow/core/platform/file_system_helper.ccghsaWEB
- github.com/tensorflow/tensorflow/blob/458c6260265c46ebaf18052d6c61aea4b6b40926/tensorflow/core/platform/file_system_helper.ccghsaWEB
- github.com/tensorflow/tensorflow/commit/8b5b9dc96666a3a5d27fad7179ff215e3b74b67cghsax_refsource_MISCWEB
- github.com/tensorflow/tensorflow/pull/40861ghsaWEB
- github.com/tensorflow/tensorflow/pull/44310ghsaWEB
- github.com/tensorflow/tensorflow/security/advisories/GHSA-9jjw-hf72-3mxwghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.