Miggo Logo

CVE-2021-37684: FPE in TFLite pooling operations

5.5

CVSS Score
3.1

Basic Information

EPSS Score
0.00376%
Published
8/25/2021
Updated
11/13/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
tensorflowpip< 2.3.42.3.4
tensorflowpip>= 2.4.0, < 2.4.32.4.3
tensorflowpip= 2.5.02.5.1
tensorflow-cpupip< 2.3.42.3.4
tensorflow-cpupip>= 2.4.0, < 2.4.32.4.3
tensorflow-cpupip= 2.5.02.5.1
tensorflow-gpupip< 2.3.42.3.4
tensorflow-gpupip>= 2.4.0, < 2.4.32.4.3
tensorflow-gpupip= 2.5.02.5.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing divisor validation in TFLite pooling operations. The commit dfa22b348b70bb89d6d6ec0ff53973bacb4f4695 adds safety checks for zero divisors in pooling dimension calculations. Key functions involved would be those handling pooling parameter computation (PoolParams::ComputePaddingHeightWidth) and the actual pooling execution (AveragePool2D::Eval), as these are standard locations where dimension validation occurs in TensorFlow's pooling implementations. The confidence is high because the vulnerability description explicitly mentions TFLite pooling operations and division-by-zero errors, which align with these core pooling functions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t T** impl*m*nt*tions o* poolin* in T*Lit* *r* vuln*r**l* to *ivision *y * *rrors *s t**r* *r* no ****ks *or *ivisors not **in* *. ### P*t***s W* **v* p*t**** t** issu* in *it*u* *ommit [****************************************](*ttps://*i

Reasoning

T** vuln*r**ility st*ms *rom missin* *ivisor v*li**tion in T*Lit* poolin* op*r*tions. T** *ommit **************************************** ***s s***ty ****ks *or z*ro *ivisors in poolin* *im*nsion **l*ul*tions. K*y *un*tions involv** woul* ** t*os* **