UBUNTU-CVE-2026-43627

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

llama.cpp builds b1283 through b9058 contain an integer overflow vulnerability in the llamabatchinit() function where unchecked multiplications in malloc() calls can wrap past INT32_MAX when computing allocation sizes. Attackers can pass specially crafted parameters to trigger integer overflow, causing heap corruption and potentially achieving arbitrary code execution through subsequent batch operations that write past allocated buffer boundaries.

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_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",
            "binary_version": "8681+dfsg-1"
        }
    ]
}

Database specific

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