Skip to content
HighVulnerability

CVE-2022-35938: TensorFlow GatherNd out-of-bounds memory read on mismatched input sizes

Identifier
CVE-2022-35938
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

TensorFlow's `GatherNd` function does not properly check input sizes against output sizes. When inputs are greater than or equal to the outputs, it triggers an out-of-bounds memory read or a crash. The flaw is tracked as CVE-2022-35938.

Mitigation

Patched in GitHub commit 4142e47e9e31db481781b955ed3ff807a781b494. The fix is included in TensorFlow 2.10.0 and cherry-picked to TensorFlow 2.9.1, 2.8.1 and 2.7.2. No known workarounds exist.