Miggo Logo

CVE-2023-25674: TensorFlow has Null Pointer Error in RandomShuffle with XLA enable

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.49333%
Published
3/24/2023
Updated
3/30/2023
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
tensorflowpip< 2.11.12.11.1
tensorflow-cpupip< 2.11.12.11.1
tensorflow-gpupip< 2.11.12.11.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit diff shows the vulnerability was fixed by adding validation for positive lengths in TensorListSplitOp. Though the user-facing API was RandomShuffle, the underlying XLA implementation path for tensor list handling (specifically TensorListSplitOp) was the root cause. The test case demonstrates how invalid parameters could trigger this code path, and the patch adds explicit checks to prevent zero/negative lengths.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t NP* in R*n*omS*u**l* wit* XL* *n**l* ```pyt*on import t*nsor*low *s t* *un* = t*.r*w_ops.R*n*omS*u**l* p*r* = {'v*lu*': **+**, 's***': -**********, 's****': -**********} @t*.*un*tion(jit_*ompil*=Tru*) *** t*st(): y = *un*(**p*r*)

Reasoning

T** *ommit *i** s*ows t** vuln*r**ility w*s *ix** *y ***in* v*li**tion *or positiv* l*n*t*s in T*nsorListSplitOp. T*ou** t** us*r-***in* *PI w*s R*n*omS*u**l*, t** un**rlyin* XL* impl*m*nt*tion p*t* *or t*nsor list **n*lin* (sp**i*i**lly T*nsorListSp