UBUNTU-CVE-2026-134540

Source
https://ubuntu.com/security/CVE-2026-134540
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-134540.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-134540
Upstream
Published
2026-11-21T23:16:00Z
Modified
2026-11-25T17:45:52Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (Source: CNA) CVSS Calculator
  • 5.5 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P (Source: CNA) CVSS Calculator
  • Ubuntu - medium (Source: SELF)
Summary
[none]
Details

A security vulnerability has been detected in ggml-org llama.cpp 0.7.0-dev. This affects the function common_sampler_init of the file common/sampling.cpp of the component llama-server. Such manipulation of the argument grammar_triggers[].type leads to improper input validation. It is possible to launch the attack remotely. The exploit has been disclosed publicly and may be used. Upgrading to version b12405 mitigates this issue. The name of the patch is 9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d. It is advisable to upgrade the affected component.

References

Affected packages

Ubuntu:26.10 / llama.cpp

Package

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

Affected ranges

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

Affected versions

Other
8681+dfsg-1
9721+dfsg-1ubuntu1
10438+dfsg-1
10438+dfsg-1ubuntu1

Ecosystem specific

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

Database specific

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

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
0 Unknown 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-134540.json"