Advisory

DEBIAN-CVE-2026-70640

Also known as: CVE-2026-70640

Summary

The record has no summary.

Details

llama.cpp builds b1886 through b7445 contain a race condition use-after-free vulnerability in the LLaMA-Android JNI wrapper where bench_1model() and free_1context() lack synchronization, allowing Thread A to operate on freed memory while Thread B concurrently frees the llama_context. Attackers can exploit this by performing heap spray with attacker-controlled data containing a fake vtable to hijack the vtable pointer at offset +0x30, causing llama_batch_allocr::clear() to dereference arbitrary memory and achieve remote code execution.

Severity

Not rated by the source.

Dates

Published
2026-08-06 22:18 UTC
Modified
2026-11-14 09:47 UTC

Affected packages and fixes

llama.cpp

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 7593+dfsg-1 (ecosystem)

Fixed versions

7593+dfsg-1

Fix

  • Fixed version 7593+dfsg-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences