CVE-2021-37655: Heap OOB in `ResourceScatterUpdate`
7.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.00961%
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:L/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 from the validation logic in ResourceScatterUpdateOp.Compute
method. The commit diff shows the vulnerable code was replaced from checking num_updates % N == 0
to proper TensorShapeUtils::StartsWith
validation. The original code's element count divisibility check (lines 958-962 in pre-patch version) failed to enforce the required shape relationship, making this function
's validation logic the root cause. The advisory explicitly references this implementation location and the patched validation logic confirms the vulnerable code path.