CVE-2021-41197

Summary

CVECVE-2021-41197
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-11-05 20:15:00 UTC
Updated2021-11-09 14:30:00 UTC
DescriptionTensorFlow is an open source platform for machine learning. In affected versions TensorFlow allows tensor to have a large number of dimensions and each dimension can be as large as desired. However, the total number of elements in a tensor must fit within an `int64_t`. If an overflow occurs, `MultiplyWithoutOverflow` would return a negative result. In the majority of TensorFlow codebase this then results in a `CHECK`-failure. Newer constructs exist which return a `Status` instead of crashing the binary. This is similar to CVE-2021-29584. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

Risk And Classification

Problem Types: CWE-190

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Google Tensorflow All All All All

References

ReferenceSourceLinkTags
tf.pad crashes with large paddings · Issue #51908 · tensorflow/tensorflow · GitHub MISC github.com
Merge pull request #51717 from yongtang:46890-tf.image.pad_to_boundin… · tensorflow/tensorflow@d81b135 · GitHub MISC github.com
PR #51732: Fix crash of tf.image.crop_and_resize when input is large … · tensorflow/tensorflow@7c1692b · GitHub MISC github.com
tf.image.resize/resize_with_crop_or_pad/pad_to_bounding_box/extract_glimpse crash(abort) · Issue #46890 · tensorflow/tensorflow · GitHub MISC github.com
Merge pull request #51658 from yongtang:51618-tf.image.extract_glimpse · tensorflow/tensorflow@a871989 · GitHub MISC github.com
Crashes due to overflow and `CHECK`-fail in ops with large tensor shapes · Advisory · tensorflow/tensorflow · GitHub CONFIRM github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 980163 Python (pip) Security Update for tensorflow-gpu (GHSA-prcg-wp5q-rv7p)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report