<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Llama.cpp (B1283 - B9058) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/llama.cpp-b1283---b9058/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 06 Aug 2026 17:25:52 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/llama.cpp-b1283---b9058/feed.xml" rel="self" type="application/rss+xml"/><item><title>Memory Management Vulnerability in llama.cpp Android JNI Wrapper</title><link>https://feed.craftedsignal.io/briefs/2026-08-llama-jni-memory-corruption/</link><pubDate>Thu, 06 Aug 2026 17:25:52 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-llama-jni-memory-corruption/</guid><description>A memory management mismatch in the llama.cpp Android JNI wrapper leads to heap metadata corruption, enabling potential denial of service or arbitrary code execution.</description><content:encoded><![CDATA[<p>A security vulnerability exists in llama.cpp builds b1886 through b7445, specifically within the LLaMA-Android JNI (Java Native Interface) wrapper. The vulnerability is caused by a memory management mismatch where the <code>new_1batch()</code> function allocates memory using the standard <code>malloc()</code> C function, but the corresponding <code>free_1batch()</code> function attempts to deallocate that memory using the C++ <code>delete</code> operator.</p>
<p>This mismatch between memory allocation and deallocation routines results in heap metadata corruption. An attacker capable of triggering this code path - typically through an application utilizing the affected library on Android - can induce a denial-of-service (DoS) condition via process crashes. Depending on the state of the heap allocator at the time of the corruption, there is potential for an attacker to achieve arbitrary code execution. This issue was addressed in build b7446.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation can lead to a denial of service on Android applications integrating the affected llama.cpp builds. In scenarios where heap manipulation is possible, an attacker could potentially gain unauthorized code execution within the context of the vulnerable application, impacting the confidentiality, integrity, and availability of data processed by the affected mobile application.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to llama.cpp build b7446 or later across all Android application deployments.</li>
<li>Audit Android applications that bundle llama.cpp libraries for versions falling within the b1886-b7445 range.</li>
<li>Implement memory sanitizers (such as HWAddressSanitizer for Android) during the development and testing lifecycle to detect heap corruption bugs and mismatched memory management routines.</li>
<li>Review custom JNI wrappers for consistent use of allocation and deallocation primitives.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>vulnerability</category><category>integer-overflow</category><category>llama-cpp</category></item></channel></rss>