All reports
Low

kernel: cxl/mbox: Clamp mailbox output allocation to the payload size

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-93186

Probability of exploitation in the next 30 days: 0.20%

FIRST EPSS · 2026-11-24

Description

In the Linux kernel, the following vulnerability has been resolved: cxl/mbox: Clamp mailbox output allocation to the payload size CXL_MEM_SEND_COMMAND bounds the user's in.size to the mailbox payload size but leaves out.size unbounded, then cxl_mbox_cmd_ctor() calls kvzalloc(out.size). A large out.size drives a huge allocation, above INT_MAX it WARNs and taints, and with panic_on_warn=1 it panics. The transport __cxl_pci_mbox_send_cmd() already clamps the response copy to min(out.size, payload_size, device len), so the output buffer is never written beyond payload_size. Clamp the allocation to payload_size too, matching the RAW path.

A flaw was found in the Linux kernel's Compute Express Link (CXL) mailbox driver. A local attacker could exploit an unbounded memory allocation vulnerability in the CXL_MEM_SEND_COMMAND function. By providing a large output size, an attacker could trigger a huge memory allocation, potentially leading to a system panic and a denial of service.