← back
CVE-2022-23559

Integer overflow in TFLite

CVSS 8.8 HIGHEPSS 1.2%CWE-190
In short

A specially crafted machine learning model can cause an integer overflow in TensorFlow Lite's embedding lookup operations, potentially leading to unauthorized memory access. This vulnerability allows attackers to read or write data outside the intended heap memory boundaries.

Technical detail

Integer overflow in embedding_size and lookup_size calculations within TFLite's embedding lookup operations results from insufficient input validation on user-supplied parameters. Exploitation requires crafting a malicious TFLite model; successful overflow can lead to heap out-of-bounds read/write, enabling information disclosure or code execution depending on memory layout and application context.

Summary generated and translated by AI from the official description.
Tensorflow is an Open Source Machine Learning Framework. An attacker can craft a TFLite model that would cause an integer overflow in embedding lookup operations. Both `embedding_size` and `lookup_size` are products of values provided by the user. Hence, a malicious user could trigger overflows in the multiplication. In certain scenarios, this can then result in heap OOB read/write. Users are advised to upgrade to a patched version.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
tensorflow · tensorflow

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →