CASEBOOK

Browse / Unsafe Model Loading and Supply Chain / CVE-2018-7575

Integer Overflow or Wraparound in Google TensorFlow

CVE-2018-7575 ยท 2019-04-30 critical

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the source)
Technique
Memory corruption
Also involves
AI Framework and Platform Flaws
Affected
tensorflow (PyPI)
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

A crafted checkpoint metadata file carries a huge block size that overflows an integer, leading the loader to read memory out of bounds. (Our summary, written by a model. The source text is below.)

Details

Issue Description

Google TensorFlow 1.7.x and earlier is affected by a Buffer Overflow vulnerability. The type of exploitation is context-dependent. The block size in meta file might contain a large int64 value which causes an integer overflow upon addition. Subsequent code using n as index may cause an out-of-bounds read.

Impact

A maliciously crafted meta checkpoint could be used to cause the TensorFlow process to perform an out of bounds read on in process memory.

References

Source: GitHub Advisory Database, used under CC BY 4.0.