﻿# LeftoverLocals: what the modified LLM memory-leak demonstration establishes

Read LeftoverLocals with the correct local-memory meaning, modified llama.cpp kernel, reconstruction artifacts and proof that observed data crossed a process boundary.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/leftoverlocals-llm-local-memory-modified-kernel-evidence/
Language: en

LeftoverLocals is a study of residual GPU local memory crossing application boundaries. Its LLM demonstration is important, but so is the exact computation used for that demonstration. Treating the headline as a result for every unmodified inference engine would discard a material experimental condition.

## Name the memory region correctly

The [authors' paper](https://arxiv.org/html/2401.16603v1) uses OpenCL terminology: local memory is a compute-unit resource shared within a workgroup, corresponding to shared memory in CUDA terminology. It is not simply another name for all device VRAM. The historical threat model requires a co-resident process with access to GPU compute interfaces.

That means an assessment should identify both the memory boundary and execution permissions. A client submitting text to an inference API is not automatically permitted to run arbitrary GPU programs. Conversely, separate users or containers do not by themselves describe the lifetime of this hardware resource.

## Preserve the modified LLM demonstration

The demonstrated system uses llama.cpp, OpenCL, CLBlast, a WizardLM checkpoint and a Radeon RX 7900 XT. Crucially, the authors replaced the matrix-vector implementation for their proof of concept. The article explains why their demonstration uses a different implementation from the then-current llama.cpp path.

The response reconstruction also has duplicate, missing and semantically similar token artifacts. A recognizable response is serious evidence, but it is not evidence of perfect transcription of every session. The published mechanism and its reported output quality must remain attached to the modified workload rather than silently becoming a benchmark of a stock installation.

## Require evidence of crossing a process boundary

[CERT/CC's coordinated disclosure](https://kb.cert.org/vuls/id/446598) describes CVE-2023-4969 and records vendor-specific findings. Its Arm statement explains that nonzero values observed in testing came from reuse within a process, not another userspace process. That distinction prevents a misleading test interpretation.

An assessment therefore needs a defined origin for observed data, not merely a nonzero buffer. This is an evidence criterion, not a proposal to examine another user's work. Any validation should remain on owned systems with synthetic data. We did not run a listener, model or recovery program.

## Separate historical findings from available mitigation

The paper records a historical device and software campaign; it cannot establish current exposure from a product name alone. [AMD's later advisory](https://www.amd.com/en/resources/product-security/bulletin/amd-sb-6010.html) supplies product-specific mitigation information and describes an administrator-enabled operating mode with possible performance effects. Installed software and enabled protection are separate facts.

The [equipment security guide](/journal/hardware-security/) and [GPU-sharing guide](/journal/gpu-mig-vs-time-slicing/) explain adjacent access and allocation boundaries. For a system record, preserve device, driver, runtime, mode and workload revision together. Do not combine historical research findings, a later update's availability and an unmeasured production system into one claimed result. The practical lesson is a precise isolation claim with traceable evidence, not a blanket label for every GPU from an affected vendor.

## Sources

- [LeftoverLocals paper and demonstration conditions](https://arxiv.org/html/2401.16603v1).
- [CERT/CC coordinated vulnerability note](https://kb.cert.org/vuls/id/446598).
- [AMD memory-leak advisory and mitigation scope](https://www.amd.com/en/resources/product-security/bulletin/amd-sb-6010.html).
