CVE-2026-70639
Description
A flaw was found in llama.cpp. A null pointer dereference vulnerability exists in the LLaMA-Android JNI wrapper. This flaw allows an attacker to provide a malicious or corrupt model file, which causes the bench_1model() function to attempt to use an invalid memory address. This leads to a crash of the Android application, resulting in a denial of service (DoS) where the application becomes unavailable.
Statement
llama.cpp is packaged for Fedora (python-llama-cpp-python, ollama, llama-cpp) as Linux command-line/library builds. This flaw is specific to the LLaMA-Android JNI wrapper's bench_1model() function, which is Android-only code that is not compiled or reachable in the standard Linux RPM builds. No Red Hat/community product is affected.
Mitigation
No mitigation is necessary; the Android-specific vulnerable code path is not present in the shipped Linux packages.
Understanding the Weakness (CWE)
Availability
Technical Impact: DoS: Crash, Exit, or Restart
NULL pointer dereferences usually result in the failure of the process unless exception handling (on some platforms) is available and implemented. Even when exception handling is being used, it can still be very difficult to return the software to a safe state of operation.
Integrity,Confidentiality
Technical Impact: Execute Unauthorized Code or Commands; Read Memory; Modify Memory
In rare circumstances, when NULL is equivalent to the 0x0 memory address and privileged code can access it, then writing or reading memory is possible, which may lead to code execution.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.