Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
llama-cpp-security-patches — Security patches for unpatched llama.cpp vulnerabilities (CVE-2026-43626 through CVE-2026-43632) — Cyera Research | Kitploit
Tools/GitHubGitHub/vladimir-tokarev-cyera/llama-cpp-security-patches
Defensive ToolsVulnerability AnalysisSupply Chain SecurityAI Security
GitHubvladimir-tokarev-cyera/llama-cpp-security-patches

llama-cpp-security-patches

Security patches for unpatched llama.cpp vulnerabilities (CVE-2026-43626 through CVE-2026-43632) — Cyera Research

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
123 days agoNot yet reviewed
Share

llama.cpp Security Patches

Security patches for unpatched vulnerabilities in llama.cpp, discovered by Cyera Research.

Background

Between July 2025 and June 2026, we reported 10 vulnerabilities to the llama.cpp project through GitHub Security Advisories and MITRE. All advisories were closed by the maintainer without fixes or CVE assignment. We submitted a public PR with patches in June 2026 — it was also closed without merging.

VulnCheck allocated 10 CVE IDs after both the vendor and MITRE failed to act. Three of the original IDs (CVE-2026-43623, CVE-2026-43624, CVE-2026-43626) were subsequently replaced by CVE-2026-70638, CVE-2026-70639, and CVE-2026-70640 respectively.

These patches are provided so that users and downstream projects can protect themselves.

Unpatched Vulnerabilities

CVECVSSVulnerabilityAffected File(s)Patch
CVE-2026-706407.3Android JNI race condition (UAF)ai_chat.cppCVE-2026-70640
CVE-2026-436278.5llama_batch_init() integer overflowllama-batch.cppCVE-2026-43627
CVE-2026-436288.5DRY sampler integer underflowllama-sampler.cpp, arg.cpp, server-task.cppCVE-2026-43628
CVE-2026-436299.2KV cache state buffer overflowllama-kv-cache.cppCVE-2026-43629
CVE-2026-436319.2Server sleep-idle use-after-freeserver-context.cpp, server-queue.cpp, server-queue.hCVE-2026-43631
CVE-2026-436329.2Server unbounded task creationserver-task.cpp, server-queue.cppCVE-2026-43632

Applying Patches

Apply a single fix:

root@kitploit:~
cd /path/to/llama.cpp
git apply /path/to/patches/CVE-2026-43631-server-sleep-uaf.patch

Apply all fixes at once:

root@kitploit:~
cd /path/to/llama.cpp
git apply /path/to/patches/all-fixes.patch

If git apply fails due to context changes in newer llama.cpp versions, try with --3way:

root@kitploit:~
git apply --3way /path/to/patches/all-fixes.patch

Disclosure Timeline

DateEvent
July 2025First vulnerability submitted via GitHub Security Advisory

Researchers

  • Vladimir Tokarev (@G1ND1L4) — Vulnerability Research Tech Lead, Cyera
  • Ofek Itach (@ofekitach) — Security Research Team Lead, Cyera

Related

  • DEF CON 34 Talk: Breaking Local AI Runtimes
  • Original PR with patches (closed)
Download Tool
October 2025Contacted MITRE for CVE assignment — 7 request IDs received, none assigned
January–May 2026Four more advisories submitted — all closed without fixes
May 2026VulnCheck allocated 10 CVEs
June 2026Public PR with patches submitted — PR closed