CVE-2026-7141: vLLM KV Block kv_cache_interface.py has_mamba_layers uninitialized resource
A vulnerability was found in vLLM up to 0.19.0. The affected element is the function hasmambalayers of the file vllm/v1/kvcacheinterface.py of the component KV Block Handler. Performing a manipulation results in uninitialized resource. It is possible to initiate the attack remotely. The attack is considered to have high complexity. The exploitability is described as difficult. The exploit has been made public and could be used. The existence of this vulnerability is still disputed at present. The proposed patch did not fix the issue. A 3rd party explains: "The divergence could be explained by a benign and expected vLLM behavior where vLLM server could group concurrent requests together resulting in different input shapes based on varying request arrival time. The differences in grouped input shapes could call different kernels with could produce difference results due to rounding and differences in order of operations. There is an environment variable VLLMBATCHINVARIANT=1 for users that desire to have deterministic output with temperature 0.0."
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-7141?
CVE-2026-7141 has been classified with a moderate severity due to potential exploitation leading to resource mismanagement.
How do I fix CVE-2026-7141?
To fix CVE-2026-7141, upgrade vllm to version 0.19.1 or higher where the vulnerability has been addressed.
What kind of vulnerability is CVE-2026-7141?
CVE-2026-7141 is a resource initialization vulnerability related to the KV Block Handler in the vllm library.
Which versions of vllm are affected by CVE-2026-7141?
CVE-2026-7141 affects all versions of vllm up to and including 0.19.0.
What component in vllm is vulnerable in CVE-2026-7141?
The vulnerable component in CVE-2026-7141 is the has_mamba_layers function in the kv_cache_interface.py file.