The vulnerability is in gguf_init_from_reader, the function that parses GGUF model files and sets up tensor metadata. When a GGUF file declares tensor shapes, the code computes the total element count by multiplying the shape dimensions. If the attacker chooses dimensions whose product overflows the integer type and wraps to zero, the element-count validation is bypassed. Downstream, ggml_nbytes() computes the byte size of a tensor from its element count and element size; with the overflowed or wrapped values, it returns a byte count far smaller than the actual tensor requires. The allocator then sizes a buffer to that wrapped value, and subsequent writes that use the original (large) tensor dimensions write past the end of the allocated buffer, producing an out-of-bounds access.