CVE-2021-29540
LOWDescription
TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a heap buffer overflow to occur in `Conv2DBackpropFilter`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/1b0296c3b8dd9bd948f924aa8cd62f87dbb7c3da/tensorflow/core/kernels/conv_grad_filter_ops.cc#L495-L497) computes the size of the filter tensor but does not validate that it matches the number of elements in `filter_sizes`. Later, when reading/writing to this buffer, code uses the value computed here, instead of the number of elements in the tensor. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
Exploit Intelligence
Low risk: more likely to be exploited than 12% of all known CVEs.
References
Related Vulnerabilities
Other CWE-120 (Classic Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2014-0195 | Medium | 6.8 | 100% | - | Fix |
| CVE-2017-7269 | Critical | 9.8 | 100% | KEV | - |
| CVE-2019-11043 | High | 8.7 | 99% | KEV + Ransom | Fix |
| CVE-2011-4862 | High | 10.0 | 95% | - | Fix |
| CVE-2007-5659 | High | 7.8 | 94% | KEV | Fix |
| CVE-2022-3786 | High | 7.5 | 91% | - | Fix |
Embed a live status badge for CVE-2021-29540
Markdown
[](https://tridentstack.com/cve/CVE-2021-29540)HTML
<a href="https://tridentstack.com/cve/CVE-2021-29540"><img src="https://tridentstack.com/cve/badge/CVE-2021-29540.svg" alt="CVE-2021-29540"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.