UBUNTU-CVE-2026-43629

Source
https://ubuntu.com/security/CVE-2026-43629
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43629.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-43629
Upstream
  • CVE-2026-43629
Published
2026-08-07T00:00:00Z
Modified
2026-08-07T17:45:13.344136170Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.2 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

llama.cpp builds b4882 through b9058 contain a heap buffer overflow vulnerability in the KV cache state restore path where the statereaddata() function computes write size without overflow checking, allowing attackers with write access to the slotsavepath directory to corrupt heap memory. Attackers can craft malicious state files where cell_count multiplication overflows or exceeds tensor buffer allocation to write attacker-controlled bytes past buffer boundaries, potentially resulting in heap metadata corruption, model weight corruption, or arbitrary code execution via function pointer overwrite.

References

Affected packages

Ubuntu:26.04:LTS / llama.cpp

Package

Name
llama.cpp
Purl
pkg:deb/ubuntu/llama.cpp?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

Other
5882+dfsg-2
8064+dfsg-1ubuntu1
8681+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "8681+dfsg-1",
            "binary_name": "libllama0"
        },
        {
            "binary_version": "8681+dfsg-1",
            "binary_name": "llama.cpp"
        },
        {
            "binary_version": "8681+dfsg-1",
            "binary_name": "llama.cpp-examples"
        },
        {
            "binary_version": "8681+dfsg-1",
            "binary_name": "llama.cpp-tests"
        },
        {
            "binary_version": "8681+dfsg-1",
            "binary_name": "llama.cpp-tools"
        },
        {
            "binary_version": "8681+dfsg-1",
            "binary_name": "llama.cpp-tools-extra"
        },
        {
            "binary_version": "8681+dfsg-1",
            "binary_name": "python3-gguf"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43629.json"