CVE-2026-93186 PUBLISHED

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

Assigner: Linux
Reserved: 17.09.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 583fa5e71caeb79e04e477e9837e2f7fa53b71e4 to f5d2bbf0300f46307948864fbb97bce5097f4fe2 (excl.)
  • affected from 583fa5e71caeb79e04e477e9837e2f7fa53b71e4 to 31d4841eca7c4b75751ca96d24339e19303337f2 (excl.)
  • affected from 583fa5e71caeb79e04e477e9837e2f7fa53b71e4 to b4e11c731d6bee3b87315e055a1ca417c92dc1fc (excl.)
  • affected from 583fa5e71caeb79e04e477e9837e2f7fa53b71e4 to 8a13db9f899d149c3aab24abcb668121cfda5a4f (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.12 is affected
  • unaffected from 0 to 5.12 (excl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.52 to 6.18.* (incl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References