~/talk

Model Files → Memory Corruption → RCE: The Triple-Stage AI Attack Chain

Talkat Black Hat Asia 2026 · 2026-04-21..04-24· [security, large-language-models]
links:none on file
name:Lei Lu
links:none on file
links:none on file
slides:none on file

Claims a reproducible three-stage chain that turns malicious TorchScript model files into reliable RCE on PyTorch: a 64-bit integer overflow in the storage offset check (2^62-1 overflow) creates a heap underflow, a crafted heap spray plus pattern scanning gains control of a storage_impl data_ptr (storage_impl data_ptr overwrite) to build arbitrary read/write, leaking libc and overwriting a destructor to trigger system via delete. Tooling: GDB, torch.save/torch.load, torch.jit, and OpenSearch integration; local exploit works, cloud service blocks remote registration.

AI-written summary · about

  1. 0:00Introduction to AI attack chain
  2. 2:14Historical model loading risks
  3. 3:38Targeting PyTorch framework
  4. 6:09PyTorch weights_only parameter
  5. 7:58PyTorch memory layout
  6. 12:57Hunting memory vulnerabilities
  7. 14:22Heap underflow vulnerability
  8. 19:01Exploiting memory corruption
  9. 24:19Live RCE demonstration
  10. 25:00Attacking OpenSearch AI
  11. 31:11Heap overflow in OpenSearch
  12. 33:15Vendor response and mitigations
  13. 34:20Security recommendations
  14. 35:44Summary and future risks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.