CVE-2021-41217: Null pointer exception when `Exit` node is not preceded by `Enter` op
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.0271%
CWE
Published
11/10/2021
Updated
11/7/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tensorflow | pip | >= 2.6.0, < 2.6.1 | 2.6.1 |
tensorflow | pip | >= 2.5.0, < 2.5.2 | 2.5.2 |
tensorflow | pip | < 2.4.4 | 2.4.4 |
tensorflow-cpu | pip | >= 2.6.0, < 2.6.1 | 2.6.1 |
tensorflow-cpu | pip | >= 2.5.0, < 2.5.2 | 2.5.2 |
tensorflow-cpu | pip | < 2.4.4 | 2.4.4 |
tensorflow-gpu | pip | >= 2.6.0, < 2.6.1 | 2.6.1 |
tensorflow-gpu | pip | >= 2.5.0, < 2.5.2 | 2.5.2 |
tensorflow-gpu | pip | < 2.4.4 | 2.4.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in the control flow graph construction logic where Exit node handling assumes a valid parent Enter node exists. The unpatched code in BuildControlFlowInfo's Exit node handling block (else if (IsExit(curr_node))) directly accesses parent->id() without null-checking 'parent' first. The GitHub patch adds the null-check validation at this location, confirming this as the vulnerable code path.