Miggo Logo

CVE-2021-29569: Heap out of bounds read in `RequantizationRange`

2.5

CVSS Score
3.1

Basic Information

EPSS Score
0.0254%
Published
5/21/2021
Updated
11/1/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
tensorflowpip< 2.1.42.1.4
tensorflowpip>= 2.2.0, < 2.2.32.2.3
tensorflowpip>= 2.3.0, < 2.3.32.3.3
tensorflowpip>= 2.4.0, < 2.4.22.4.2
tensorflow-cpupip< 2.1.42.1.4
tensorflow-cpupip>= 2.2.0, < 2.2.32.2.3
tensorflow-cpupip>= 2.3.0, < 2.3.32.3.3
tensorflow-cpupip>= 2.4.0, < 2.4.22.4.2
tensorflow-gpupip< 2.1.42.1.4
tensorflow-gpupip>= 2.2.0, < 2.2.32.2.3
tensorflow-gpupip>= 2.3.0, < 2.3.32.3.3
tensorflow-gpupip>= 2.4.0, < 2.4.22.4.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems directly from the unvalidated tensor element access in the Compute method of RequantizationRangeOp. The patch adds explicit checks for NumElements() > 0 before accessing tensor data, confirming the vulnerability was in this function. The code context shows direct memory access operations on potentially empty tensors, matching the CWE-125 description.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t T** impl*m*nt*tion o* `t*.r*w_ops.M*xPool*r**Wit**r*m*x` **n **us* r***s outsi** o* *oun*s o* ***p *llo**t** **t* i* *tt**k*r suppli*s sp**i*lly *r**t** inputs: ```pyt*on import t*nsor*low *s t* input = t*.*onst*nt([*], s**p*=[*], *typ*=

Reasoning

T** vuln*r**ility st*ms *ir**tly *rom t** unv*li**t** t*nsor *l*m*nt ****ss in t** `*omput*` m*t*o* o* `R*qu*ntiz*tionR*n**Op`. T** p*t** ***s *xpli*it ****ks *or `Num*l*m*nts()` > * ***or* ****ssin* t*nsor **t*, *on*irmin* t** vuln*r**ility w*s in t