Bug 2447033 (CVE-2026-27940) - CVE-2026-27940 llama.cpp: heap-based buffer overflow via integer overflow in mem_size calculation (bypass of CVE-2025-53630 fix)
Summary: CVE-2026-27940 llama.cpp: heap-based buffer overflow via integer overflow in ...
Keywords:
Status: NEW
Alias: CVE-2026-27940
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2448112
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-12 17:01 UTC by OSIDB Bzimport
Modified: 2026-03-16 17:28 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-03-12 17:01:56 UTC
llama.cpp is an inference of several LLM models in C/C++. Prior to b8146, the gguf_init_from_file_impl() in gguf.cpp is vulnerable to an Integer overflow, leading to an undersized heap allocation. Using the subsequent fread() writes 528+ bytes of attacker-controlled data past the buffer boundary. This is a bypass of a similar bug in the same file - CVE-2025-53630, but the fix overlooked some areas. This vulnerability is fixed in b8146.


Note You need to log in before you can comment on or make changes to this bug.