Heap-based buffer overflow in TensorFlow - CVE-2021-41223

 

Heap-based buffer overflow in TensorFlow - CVE-2021-41223

Published: November 5, 2021 / Updated: May 3, 2026


Vulnerability identifier: #VU129182
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-41223
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: TensorFlow
Affected software:
TensorFlow

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to a heap-based buffer overflow in FusedBatchNorm kernels when processing crafted input tensors in the FusedBatchNormGrad operation. A remote attacker can supply inconsistent tensor shapes to trigger an out-of-bounds heap access and cause a denial of service.


How to mitigate CVE-2021-41223

Install security update from vendor's website.

Sources