What happened
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.
Why it matters
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.
Attack vector
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.
Affected systems
DeepSeek-AI DeepGEMM 2.8.1 and 2.8.2 (no vendor fix; issue #481 reported, vendor has not responded)
Mitigation
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.