Segfault in Tensorflow
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-125 and the CVSS impact.
Summary
In Tensorflow before version 2.4.0, an attacker can pass an invalid `axis` value to `tf.quantization.quantize_and_dequantize`. This results in accessing a dimension outside the rank of the input tensor in the C++ kernel implementation. However, dim_size only does a DCHECK to validate the argument and then uses it to access the corresponding element of an array. Since in normal builds, `DCHECK`-like macros are no-ops, this results in segfault and access out of bounds of the array. The issue is patched in eccb7ec454e6617738554a255d77f08e60ee0808 and TensorFlow 2.4.0 will be released containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tensorflow | before 2.4.0 | 2.4.0 | Patch available | CNA | |
| — | tensorflow (PyPI) | before 2.4.0 | 2.4.0 | Patch available | GHSA-rrfp-j2mp-hq9c |
| — | tensorflow-cpu (PyPI) | before 2.4.0 | 2.4.0 | Patch available | GHSA-rrfp-j2mp-hq9c |
| — | tensorflow-gpu (PyPI) | before 2.4.0 | 2.4.0 | Patch available | GHSA-rrfp-j2mp-hq9c |
- tensorflow VendorGoogle Affected before 2.4.0 Fixed in 2.4.0 Patch available CNA
- tensorflow (PyPI) Vendor— Affected before 2.4.0 Fixed in 2.4.0 Patch available GHSA-rrfp-j2mp-hq9c
- tensorflow-cpu (PyPI) Vendor— Affected before 2.4.0 Fixed in 2.4.0 Patch available GHSA-rrfp-j2mp-hq9c
- tensorflow-gpu (PyPI) Vendor— Affected before 2.4.0 Fixed in 2.4.0 Patch available GHSA-rrfp-j2mp-hq9c
Remediation
- Fix · CNA tensorflow (tensorflow) Fixed in 2.4.0
- Fix · GHSA-rrfp-j2mp-hq9c tensorflow (PyPI) Fixed in 2.4.0 Advisory →
- Fix · GHSA-rrfp-j2mp-hq9c tensorflow-cpu (PyPI) Fixed in 2.4.0 Advisory →
- Fix · GHSA-rrfp-j2mp-hq9c tensorflow-gpu (PyPI) Fixed in 2.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-15265
- 2026-10-03 Alias added: GHSA-rrfp-j2mp-hq9c
References
Patch 2
Other 4
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-295.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-330.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-138.yaml
- https://github.com/tensorflow/tensorflow
More Google Tensorflow vulnerabilities
- TI-2022-20241 FractionalMaxPool and FractionalAVGPool heap out-of-bounds acess in Tensorflow CVSS 3.1CRITICAL 9.8
- TI-2022-07640 Integer overflow in Tensorflow CVSS 3.1CRITICAL 9.8
- TI-2022-07627 Out of bounds read and write in Tensorflow CVSS 3.1HIGH 8.8
- TI-2022-07619 Out of bounds write in Tensorflow CVSS 3.1HIGH 8.8
- TI-2022-07613 Read and Write outside of bounds in TFLite CVSS 3.1HIGH 8.8
- TI-2022-07612 Integer overflow in TFLite CVSS 3.1HIGH 8.8
Sources
- CVE-2020-15265 · CVE Program
- CVE-2020-15265 · NVD
- FIRST EPSS
- GHSA-rrfp-j2mp-hq9c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences