Vulnerability  ·  2026-12-01

DeepGEMM fp8_fp4_mqa_logits out-of-bounds write via max_seqlen_k (attention kernel)

VulnerabilityMedium impactGlobalCVE-2026-139817
An out-of-bounds write was reported in DeepGEMM 2.8.1/2.8.2 in fp8_fp4_mqa_logits, driven by the max_seqlen_k argument (CVSS 3.1 7.3 / CWE-787). The project was informed via issue #481 but has not responded, so no release fixes it yet.
Memory-safety bugs in inference kernels are reachable from untrusted request traffic in multi-tenant serving and can corrupt or crash the GPU serving process, or in principle be exploited when the kernel is invoked with unexpected sequence lengths. The lack of a vendor response means no patch exists today.
The fp8_fp4_mqa_logits function in csrc/apis/attention.hpp writes out of bounds based on the max_seqlen_k argument (CWE-119/CWE-787). Reachable when computing attention logits during inference; a crafted sequence length can corrupt memory in the serving process.
DeepSeek-AI DeepGEMM 2.8.1 and 2.8.2 (no vendor fix; issue #481 reported, vendor has not responded)
No upstream patch from DeepSeek yet (advisory 'Deferred' by VulDB). Pin/downgrade to a version without the vulnerable attention path, or avoid fp8/fp4 multi-query attention with attacker- or batch-influenced sequence lengths; monitor for upstream fix.
NVD CVE-2026-139817DeepGEMM issue #481
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →