Miggo Logo

CVE-2022-23557: Division by zero in TFLite

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.43451%
Published
2/9/2022
Updated
11/13/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
tensorflowpip< 2.5.32.5.3
tensorflowpip>= 2.6.0, < 2.6.32.6.3
tensorflowpip= 2.7.02.7.1
tensorflow-cpupip< 2.5.32.5.3
tensorflow-cpupip>= 2.6.0, < 2.6.32.6.3
tensorflow-cpupip= 2.7.02.7.1
tensorflow-gpupip< 2.5.32.5.3
tensorflow-gpupip>= 2.6.0, < 2.6.32.6.3
tensorflow-gpupip= 2.7.02.7.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the BiasAndClamp function in common.h, which contained a division-relevant operation (array_size % bias_size) without ensuring bias_size != 0. The commit 8c6f391a2282684a25cbfec7687bd5d35261a209 explicitly adds a 'if (bias_size == 0) return;' guard clause to fix this, confirming the function's vulnerability in versions prior to the patch. The file path and function name are explicitly referenced in both the vulnerability description and the commit diff.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t *n *tt**k*r **n *r**t * T*Lit* mo**l t**t woul* tri***r * *ivision *y z*ro in [`*i*s*n**l*mp` impl*m*nt*tion](*ttps://*it*u*.*om/t*nsor*low/t*nsor*low/*lo*/****************************************/t*nsor*low/lit*/k*rn*ls/int*rn*l/*ommon.*

Reasoning

T** vuln*r**ility st*ms *rom t** *i*s*n**l*mp *un*tion in *ommon.*, w*i** *ont*in** * *ivision-r*l*v*nt op*r*tion (*rr*y_siz* % *i*s_siz*) wit*out *nsurin* *i*s_siz* != *. T** *ommit **************************************** *xpli*itly ***s * 'i* (*i*