제출 #745263: llama.cpp commit 55abc39 Stack-based Buffer Overflow정보

제목llama.cpp commit 55abc39 Stack-based Buffer Overflow
설명A stack-based buffer overflow (stack overflow) vulnerability existed in the GBNF grammar handling logic of llama.cpp. When processing specific grammar constructs, the function `llama_grammar_advance_stack()` could enter unbounded recursive expansion because it lacked adequate recursion/cycle protection beyond checking for an empty stack. In particular, a crafted GBNF file containing nested repetition patterns (for example `(...*)*`) could cause the function to repeatedly create new stack states and recursively call itself until the program’s call stack was exhausted. This results in a crash detected by AddressSanitizer and can be exploited as a denial-of-service condition when an application loads attacker-controlled grammar files. The vendor has since addressed the issue.
원천⚠️ https://github.com/ggml-org/llama.cpp/issues/18988
사용자
 TYGLS (UID 94774)
제출2026. 01. 23. AM 04:29 (5 개월 ago)
모더레이션2026. 02. 06. AM 08:41 (14 days later)
상태수락
VulDB 항목344636 [ggml-org llama.cpp 까지 55abc39 GBNF Grammar llama-grammar.cpp llama_grammar_advance_stack 메모리 손상]
포인트들20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!