{"id":"UBUNTU-CVE-2026-43632","details":"llama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in llama-server affecting six tokenization endpoints (/tokenize, /detokenize, /infill, /apply-template, /rerank, and /anthropic/count_tokens) that bypass the task queue and access ctx_server.vocab directly on HTTP worker threads. Attackers can exploit a time-of-check-time-of-use race condition where the main thread destroys and frees vocab after the synchronization lock is released but before the handler finishes using it, causing a crash or potential code execution when --sleep-idle-seconds is configured.","modified":"2026-08-13T00:06:43Z","published":"2026-08-06T22:17:00Z","upstream":["CVE-2026-43632"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-43632"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-43632"},{"type":"REPORT","url":"https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches"}],"affected":[{"package":{"name":"llama.cpp","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/llama.cpp?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5882+dfsg-2","8064+dfsg-1ubuntu1","8681+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"8681+dfsg-1","binary_name":"libllama0"},{"binary_name":"llama.cpp","binary_version":"8681+dfsg-1"},{"binary_name":"llama.cpp-examples","binary_version":"8681+dfsg-1"},{"binary_name":"llama.cpp-tests","binary_version":"8681+dfsg-1"},{"binary_name":"llama.cpp-tools","binary_version":"8681+dfsg-1"},{"binary_name":"llama.cpp-tools-extra","binary_version":"8681+dfsg-1"},{"binary_name":"python3-gguf","binary_version":"8681+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43632.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}