CVE-2021-41219

Published on: 11/05/2021 12:00:00 AM UTC

Last Modified on: 11/17/2021 09:38:18 PM UTC

CVE-2021-41219 - advisory for GHSA-4f99-p9c2-3j8x

Source: Mitre Source: Nist Print: PDF PDF
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Certain versions of Tensorflow from Google contain the following vulnerability:

TensorFlow is an open source platform for machine learning. In affected versions the code for sparse matrix multiplication is vulnerable to undefined behavior via binding a reference to `nullptr`. This occurs whenever the dimensions of `a` or `b` are 0 or less. In the case on one of these is 0, an empty output tensor should be allocated (to conserve the invariant that output tensors are always allocated when the operation is successful) but nothing should be written to it (that is, we should return early from the kernel implementation). Otherwise, attempts to write to this empty tensor would result in heap OOB access. 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.

  • CVE-2021-41219 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as HIGH severity.
  • Affected Vendor/Software: URL Logo tensorflow - tensorflow version >= 2.6.0, < 2.6.1
  • Affected Vendor/Software: URL Logo tensorflow - tensorflow version >= 2.5.0, < 2.5.2
  • Affected Vendor/Software: URL Logo tensorflow - tensorflow version < 2.4.4

CVSS3 Score: 7.8 - HIGH

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
LOCAL LOW LOW NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED HIGH HIGH HIGH

CVSS2 Score: 4.6 - MEDIUM

Access
Vector
Access
Complexity
Authentication
LOCAL LOW NONE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
PARTIAL PARTIAL PARTIAL

CVE References

Description Tags Link
Validate that matrix dimension sizes in SparseMatMul are positive. · tensorflow/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/tensorflow/tensorflow/commit/e6cf28c72ba2eb949ca950d834dd6d66bb01cfae
Undefined behavior via `nullptr` reference binding in sparse matrix multiplication · Advisory · tensorflow/tensorflow · GitHub github.com
text/html
URL Logo CONFIRM github.com/tensorflow/tensorflow/security/advisories/GHSA-4f99-p9c2-3j8x

Related QID Numbers

  • 980184 Python (pip) Security Update for tensorflow-gpu (GHSA-4f99-p9c2-3j8x)

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationGoogleTensorflowAllAllAllAll
ApplicationGoogleTensorflow2.6.0AllAllAll
  • cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*:
  • cpe:2.3:a:google:tensorflow:2.6.0:*:*:*:*:*:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport CVE-2021-41219 : TensorFlow is an open source platform for machine learning. In affected versions the code for spar… twitter.com/i/web/status/1… 2021-11-05 20:57:58
Twitter Icon @LinInfoSec Tensorflow - CVE-2021-41219: github.com/tensorflow/ten… 2021-11-05 23:07:34
© CVE.report 2022 Twitter Nitter Twitter Viewer |

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.

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