CVE-2021-37689: Null pointer dereference in TFLite MLIR optimizations
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.1441%
CWE
Published
8/25/2021
Updated
11/13/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tensorflow | pip | < 2.3.4 | 2.3.4 |
tensorflow | pip | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflow | pip | = 2.5.0 | 2.5.1 |
tensorflow-cpu | pip | < 2.3.4 | 2.3.4 |
tensorflow-cpu | pip | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflow-cpu | pip | = 2.5.0 | 2.5.1 |
tensorflow-gpu | pip | < 2.3.4 | 2.3.4 |
tensorflow-gpu | pip | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflow-gpu | pip | = 2.5.0 | 2.5.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems directly from the L2NormalizeReduceAxis function's implementation. The code checks axis values via *axis.getValues<int>().begin() without first verifying axis contains elements. The patch adds a guard clause checking axis.getNumElements() == 0, confirming this was the vulnerable code path. All vulnerability descriptions and commit diffs specifically reference this function as the source of the null dereference. No other functions are mentioned in the advisory materials as contributing to this vulnerability.