DEF CON 34 - Main - Breaking Local AI Runtimes  Exploiting llama cpp & Ollama - V Tokarev,  O Itach @DEFCONConference
DEF CON 34 - Main - Breaking Local AI Runtimes  Exploiting llama cpp & Ollama - V Tokarev,  O Itach  @DEFCONConference
Uploaded November 2026 | Updated November 2026, 2 days ago
Local LLM runtimes now sit inside phones, desktops, and internal servers, but the layer underneath is still ordinary native code. We analyzed llama.cpp and Ollama across three trust boundaries: JNI, HTTP lifecycle code, and Go/C bindings.

First, in the llama.cpp Android integration, Java can free a native llama_context while native code is still using it. We reclaim the freed 648-byte object, redirect a vtable call, and show code execution in the embedding app. Second, in llama.cpp server, idle model teardown can race active requests, leaving a dangling pointer inside a freed 17,816-byte model allocation. We show remote cross-thread reclaim and attacker-controlled native dereference, then explain the remaining steps to stable RCE. Third, in Ollama, malicious GGUF metadata can push unsafe lengths across the Go/C boundary during quantization, causing C to read past a Go-backed buffer and return heap data to the caller.

This is not a prompt-injection talk. It is about exploiting local AI runtimes as native software: one full exploit, one validated server-side primitive, one disclosure primitive, and the audit patterns that find more.
DEF CON 34 - Main - Breaking Local AI Runtimes  Exploiting llama cpp & Ollama - V Tokarev,  O ItachDEF CON 34 - Main - CloudBashing for mining, networking, exfil,  persistence - J Hwong, C RyanDEF CON 34 - PhysSec - FORTRESS Framework - Brad AmmermanDEF CON 34 - CarHack - Free IP, Free Chaos DHCP Assisted Flooding  Auto Ethernet - Yehyeong LeeDEF CON 32 - Warflying in a Cessna - Matt Thomassen, Sean McKeeverDEF CON 34 - OWASP - Defend zee clankers  OWASP AI Security Verification Standard  - Jim ManicoDEF CON 34 - GameHack - RCE on the Sega Dreamcast PlanetWeb Browser - Christopher HernandezDEF CON 33 - RF Village - Tactical Flipper Zero You Have 1 Hour and No Other Equipment - Grey FoxDEF CON 34 - OSINT4Good  - What it takes to find missing people - PanelDEF CON 34  - Aerospace - Hacking AFDX  Primer for Flight Control  Security - A Tierney, A BromileyDEF CON 34 - GameHack - Catching Cheaters in Super Smash Bros Melee - AltF4DEF CON 34  - Aerospace - Racing PX4  Memory Safety and Timing Vulnerabilities - Nefeli Georgilas
DEFCONConference |

DEF CON 34 - Main - Breaking Local AI Runtimes Exploiting llama cpp & Ollama - V Tokarev, O Itach

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER