llama.cpp b11003 before b12556 contains an integer overflow in the hrm_text loader load_arch_hparams() that allows attackers to bypass the block count check using crafted GGUF metadata. Attackers can supply a GGUF model whose layer factors wrap modulo 2^32, causing load_arch_tensors() to write tensor pointers past model.layers, corrupting heap memory and potentially enabling code execution.
https://github.com/ggml-org/llama.cpp/releases/tag/b12556
https://github.com/ggml-org/llama.cpp/pull/32601
https://github.com/ggml-org/llama.cpp/commit/50518b64c6f2191a116d2760042f106c4b3387d7
https://github.com/ggml-org/llama.cpp/blob/b12555/src/models/hrm-text.cpp