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


Vulnerability identifier: #VU99622

Vulnerability risk: Low

CVSSv4.0: 5.9 [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/E:U/U:Clear]

CVE-ID: CVE-2024-42479

CWE-ID: CWE-787

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
llama.cpp
Other software / Other software solutions

Vendor: ggerganov

Description

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

llama.cpp: b1046 - ci cublas linux-b1104-cec628e


External links
https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-wcr5-566p-9cwj
https://github.com/ggerganov/llama.cpp/commit/b72942fac998672a79a1ae3c03b340f7e629980b


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability