vLLM CVE-2026-53923
MEDIUMSeverity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network delivery via crafted model file; operator must actively load it (UI:R); no attacker auth needed; scope change because leakage crosses tenant boundaries (S:C); high confidentiality impact from stale GPU memory exposure; no integrity or availability impact.
Primary rating from Vendor (https://github.com/vllm-project/vllm).
CVSS VectorVendor: https://github.com/vllm-project/vllm
Lifecycle Timeline
3Blast Radius
ecosystem impact- 2 pypi packages depend on vllm (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.5.5.
DescriptionCVE.org
Summary
Integer truncation of tensor dimensions in vLLM's GGUF dequantize kernels (csrc/quantization/gguf/gguf_kernel.cu) causes partial tensor processing. The output tensor is allocated at full size via torch::empty (uninitialized memory), but the dequantize CUDA kernel processes only a truncated number of elements. The unfilled portion of the output tensor retains whatever was previously in GPU memory. In multi-tenant inference deployments, this residual GPU memory may contain tensor data from other users' inference requests, constituting information disclosure.
Root Cause
The to_cuda_ggml_t function pointer type at ggml-common.h:1067 declares its element count parameter as int (32-bit):
using to_cuda_ggml_t = void (*)(const void * __restrict__ x,
dst_t * __restrict__ y,
int k, // 32-bit
cudaStream_t stream);All dequantize kernel functions (dequantize_block_cuda, dequantize_row_q2_K_cuda, etc. in dequantize.cuh) inherit this int k parameter and use it as the kernel launch grid size:
static void dequantize_block_cuda(..., const int k, cudaStream_t stream) {
const int num_blocks = (k + 2*CUDA_DEQUANTIZE_BLOCK_SIZE - 1) / (2*CUDA_DEQUANTIZE_BLOCK_SIZE);
dequantize_block<<<num_blocks, CUDA_DEQUANTIZE_BLOCK_SIZE, 0, stream>>>(vx, y, k);
}In ggml_dequantize() at gguf_kernel.cu:85, the caller passes m * n (an int64_t product) to this int k parameter:
at::Tensor DW = torch::empty({m, n}, options); // line 80: full-size, UNINITIALIZED
// ...
to_cuda((void*)W.data_ptr(), (scalar_t*)DW.data_ptr(), m * n, stream); // line 85: m*n truncated to intWhen m * n > INT_MAX, the truncated k is smaller than the actual tensor size. The kernel processes k elements. The remaining (m * n) - k elements in DW are never written and contain stale GPU memory.
This is a single root cause -- the int type on the k parameter in to_cuda_ggml_t -- with a single fix: change int k to int64_t k. All dequantize functions inherit this type through the same typedef.
Affected Functions
All in csrc/quantization/gguf/gguf_kernel.cu:
| Function | Line | Allocation | Info Disclosure? |
|---|---|---|---|
ggml_dequantize | 74 | torch::empty({m, n}) at line 80 | Yes -- m*n truncated to int k at line 85 |
ggml_mul_mat_vec_a8 | 91 | torch::empty({vecs, row}) at line 99 | Yes -- int col = X.sizes()[1] at line 94 |
ggml_mul_mat_a8 | 207 | torch::empty({batch, row}) at line 215 | Yes -- int col = X.sizes()[1] at line 210 |
ggml_moe_a8 | 279 | torch::empty({tokens*top_k, row}) at line 289 | Yes -- int col = X.sizes()[1] at line 285 |
All four functions allocate output tensors with torch::empty (uninitialized) and then run CUDA kernels that use truncated dimension values as loop bounds. The unfilled portion of each output tensor retains stale GPU memory.
ggml_moe_a8_vec (line 382) uses torch::zeros instead of torch::empty, so it is not affected by the info disclosure variant.
Impact: Information Disclosure in Multi-Tenant Serving
vLLM is designed for multi-tenant inference serving. GPU memory is reused across requests from different users. When the dequantize kernel partially fills an output tensor:
- The output tensor
DWis allocated withtorch::empty-- the buffer contains whatever was previously in that GPU memory region - The dequantize kernel fills only a truncated portion of the buffer
- The unfilled portion retains residual data from prior GPU operations, which may include tensor data from other users' inference requests
- The contaminated tensor proceeds through the model computation
- No error or warning is generated -- the partial fill is silent
This is a confidentiality violation. In shared inference deployments (the primary vLLM use case), one user's inference data can leak into another user's model computation through residual GPU memory.
Attacker Control
The attacker crafts a GGUF model file with weight tensor dimensions whose product exceeds INT_MAX (e.g., a matrix with shape [65536, 65536] gives m * n = 4,294,967,296). The model is hosted on HuggingFace or any model hub. The victim loads the model with vLLM for inference serving. The truncation happens automatically during model weight dequantization.
Fix
A fix for this vulnerability was added here: https://github.com/vllm-project/vllm/pull/44971
AnalysisAI
Integer truncation in vLLM's GGUF dequantize CUDA kernels (csrc/quantization/gguf/gguf_kernel.cu) silently corrupts tensor dequantization for large weight matrices in multi-tenant inference deployments, enabling cross-tenant GPU memory disclosure. When a GGUF model's weight tensor dimensions have a product exceeding INT_MAX (2,147,483,647), the int64_t element count is silently truncated to a 32-bit int at the to_cuda_ggml_t call site, causing CUDA kernels to process only a subset of the allocated output tensor. The unprocessed remainder, allocated via torch::empty (uninitialized), retains stale GPU memory contents from prior operations that may include tensor data from other users' inference requests - with no error, warning, or signal generated. No public exploit code or CISA KEV listing has been identified at time of analysis, though the advisory provides sufficient technical detail to facilitate reproduction.
Technical ContextAI
The vulnerable component is the GGUF quantization subsystem of vLLM (pkg:pip/vllm), a high-throughput LLM inference engine. The root cause (CWE-200: Exposure of Sensitive Information) is a type narrowing defect in the to_cuda_ggml_t function pointer typedef in ggml-common.h:1067, which declares the element count parameter k as int (32-bit signed), capping it at 2,147,483,647. When ggml_dequantize() at gguf_kernel.cu:85 passes the int64_t product m*n to this int parameter, any value exceeding INT_MAX wraps silently. The CUDA kernel then computes its launch grid based on this truncated k, fires fewer thread blocks than needed, and leaves the tail of the output tensor unwritten. Because output tensors are allocated with torch::empty - which provides no initialization guarantee - the unwritten region contains whatever bytes occupied that GPU memory region from previous operations. In a multi-tenant vLLM deployment, GPU memory is continuously reused across requests from different tenants, making the residual content an information disclosure vector. Four functions in gguf_kernel.cu are affected: ggml_dequantize (line 74), ggml_mul_mat_vec_a8 (line 91), ggml_mul_mat_a8 (line 207), and ggml_moe_a8 (line 279). The fifth function, ggml_moe_a8_vec, is not affected because it uses torch::zeros for allocation.
RemediationAI
The upstream fix is available in PR #44971 (https://github.com/vllm-project/vllm/pull/44971) and commit f219788f91952827132fa4fdf916427cd20d225e. The fix changes the to_cuda_ggml_t typedef's k parameter from int to int64_t and propagates int64_t throughout all affected dequantize kernel signatures in dequantize.cuh, eliminating the truncation. A defense-in-depth measure is also included: torch::stable::fill_(DW, 0.0) is inserted before the kernel launch in ggml_dequantize so that even if truncation were to recur, the tensor tail would be zeroed rather than populated with stale data. Operators running vLLM versions in the affected range should pin to the patched commit or monitor for a released version incorporating this fix. Until a patched release is available, compensating controls include: restricting GGUF model loading to a curated, internally audited model registry rather than accepting arbitrary community models; deploying vLLM in single-tenant mode (one user per GPU context) to eliminate cross-tenant leakage even if truncation occurs; and adding a validation layer at model ingestion that inspects GGUF tensor dimension metadata and rejects any weight tensor whose dimension product exceeds INT_MAX before the model reaches the dequantize path. The model-registry restriction is the highest-value near-term control with minimal operational overhead.
Same weakness CWE-200 – Information Exposure
View allSame technique Information Disclosure
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
GHSA-5jv2-g5wq-cmr4