Out-of-bounds write in llama.cpp - CVE-2024-42479

 

Out-of-bounds write in llama.cpp - CVE-2024-42479

Published: November 1, 2024


Vulnerability identifier: #VU99622
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-42479
CWE-ID: CWE-787
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error within the LLM inference. A local user can trigger an out-of-bounds write and execute arbitrary code on the target system.


Affected software

llama.cpp
Fedora
llama-cpp

How to mitigate CVE-2024-42479

Install updates from vendor's website.

llama.cpp - update to b3561
llama-cpp - update to b3561-1.fc40

External References

Related Security Bulletins