CVE-2021-41219

HighCVSS 7.8/10Last modified Jun 17, 2026

Description

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Nov 5, 2021
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2021

CVE-2021-41224.3It was found that a specially crafted LUKS header could trick cryptsetup into disabling encryption during the recovery of the device. An attCVE-2021-412207.8TensorFlow is an open source platform for machine learning. In affected versions the async implementation of `CollectiveReduceV2` suffers frCVE-2021-412217.8TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for the `Cudnn*` operations in TenCVE-2021-412225.5TensorFlow is an open source platform for machine learning. In affected versions the implementation of `SplitV` can trigger a segfault is anCVE-2021-412237.1TensorFlow is an open source platform for machine learning. In affected versions the implementation of `FusedBatchNorm` kernels is vulnerablCVE-2021-412247.1TensorFlow is an open source platform for machine learning. In affected versions the implementation of `SparseFillEmptyRows` can be made to CVE-2021-412257.8TensorFlow is an open source platform for machine learning. In affected versions TensorFlow's Grappler optimizer has a use of unitialized vaCVE-2021-412267.1TensorFlow is an open source platform for machine learning. In affected versions the implementation of `SparseBinCount` is vulnerable to a hCVE-2021-412275.5TensorFlow is an open source platform for machine learning. In affected versions the `ImmutableConst` operation in TensorFlow can be trickedCVE-2021-412287.8TensorFlow is an open source platform for machine learning. In affected versions TensorFlow's `saved_model_cli` tool is vulnerable to a codeCVE-2021-412296.5BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory whCVE-2021-41236.5livehelperchat is vulnerable to Cross-Site Request Forgery (CSRF)
CVE-2021-41219: High severity, CVSS 7.8 | Vulnix