CVE-2026-70639: llama.cpp builds b1886 through b7445 contain a null pointer dereference vulnerability in the LLaMA-Android JNI
21
Routine
MEDIUM 5.5UPGRADE
CVE-2026-70639 is a medium-severity flaw (CVSS 5.5) affecting llama.cpp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
llama.cpp builds b1886 through b7445 contain a null pointer dereference vulnerability in the LLaMA-Android JNI wrapper where the bench_1model() function fails to validate the model context pointer before dereferencing it. Attackers can supply a malicious, corrupt, or truncated model file to trigger a null context condition, causing a SIGSEGV crash that terminates the Android application process and results in denial of service.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.2% (top 91%) |
| CISA exploited list | No |
| Weakness | CWE-476 |
| Published | 2026-08-06 |
| Last modified | 2026-10-23 |
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
ggml llama.cpp UPGRADE
Affected: >= b1886 and <= b7445
Fixed in: newer than b7445
Safe to downgrade to: a release before b1886
1. Check installed version
apt-cache policy llama.cpp || rpm -q llama.cpp || llama.cpp --version
2. UPGRADE to newer than b7445 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade llama.cpp
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade llama.cpp
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before b1886 (Debian / Ubuntu)
apt-cache madison llama.cpp
sudo apt install llama.cpp=<VERSION_BEFORE_b1886>
sudo apt-mark hold llama.cpp
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list llama.cpp
sudo dnf downgrade llama.cpp-<VERSION_BEFORE_b1886>
sudo dnf versionlock add llama.cpp
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Related CVEs
- CVE-2026-43629 HIGH 8.1 UPGRADE llama.cpp builds b4882 through b9058 contain a heap buffer overflow vulnerability in the KV cache state restor
- CVE-2026-43631 HIGH 8.1 UPGRADE llama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in the vocab pointer o
- CVE-2026-43632 HIGH 8.1 UPGRADE llama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in llama-server affect
- CVE-2026-70640 HIGH 7.0 UPGRADE llama.cpp builds b1886 through b7445 contain a race condition use-after-free vulnerability in the LLaMA-Androi
- CVE-2026-43622 HIGH 7.8 UPGRADE llama.cpp builds b1886 through b7445 contain a double free vulnerability in the LLaMA-Android JNI wrapper wher