Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB6793AA504 for ; Wed, 25 Mar 2026 10:29:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434562; cv=none; b=Y/K4CTcYELUbHOQnLXZrWkRFeSsnxUeNTHIWaa7l7XuhKxPpw48+fvm9eF7r45NC48WdAh+JaA/BA1gcGerkYPTc/8Mhh0FaEhPfUXfsipP94mPcw+8SmzmNLOokOPKA1joJ+UHde8mNTdQtae17S/FPkhefz4BSWJ0nMNRkiwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434562; c=relaxed/simple; bh=w19Ornb3GhqLCoZzbO4ausZlhktfgPfZ1TNIGyBlwYo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J/zvff5Lk/dIl1uKBIM7QI48YbjNR0Cr21yLpEL//wYDH2W2aQG0aTHGTOivradyjTt26hALQy5m+WEyOokTPef3zigJqe6FkijI5sFNtX1nf/Ays4Avj6eorYWnu7pQTiJ4yt78QIfJTzoj+JjE5OxwYC4kmeWLG3KZQsJgFAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GsIvry+e; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GsIvry+e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5823DC4CEF7; Wed, 25 Mar 2026 10:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434562; bh=w19Ornb3GhqLCoZzbO4ausZlhktfgPfZ1TNIGyBlwYo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=GsIvry+eGQ/ZKRWXPE46s4WdR4O2kzayESPsbAKsFcqxqDhBWzf9bWZyktkHpo47Z fvwuzl+/rGz1D0IOA0qfW51hRYC8tFhjfhTsH7i8Ge2x5POfHzHm4IdmFPMGzUsgrf 5/BpmvfGRWXDozB46BRCqsW5rjBBJNSI3EuMTWoo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23327: cxl/mbox: validate payload size before accessing contents in cxl_payload_from_user_allowed() Date: Wed, 25 Mar 2026 11:27:11 +0100 Message-ID: <2026032532-CVE-2026-23327-c497@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4245; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DUSvvCjr/BknfPBtEMpidXj1U46ky0slmYJeXnzmwt4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd0SUBF2RWid09WNEQsfjCU6CveWPZK7uOhyt9n3fL x9ePpnXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRtb4M81Qv/DuZ+3/zISm1 FRfmzVhy6d3i/9IM80tncDx4P/HLnQvysZtzHayDn90UZwYA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: cxl/mbox: validate payload size before accessing contents in cxl_payload_from_user_allowed() cxl_payload_from_user_allowed() casts and dereferences the input payload without first verifying its size. When a raw mailbox command is sent with an undersized payload (ie: 1 byte for CXL_MBOX_OP_CLEAR_LOG, which expects a 16-byte UUID), uuid_equal() reads past the allocated buffer, triggering a KASAN splat: BUG: KASAN: slab-out-of-bounds in memcmp+0x176/0x1d0 lib/string.c:683 Read of size 8 at addr ffff88810130f5c0 by task syz.1.62/2258 CPU: 2 UID: 0 PID: 2258 Comm: syz.1.62 Not tainted 6.19.0-dirty #3 PREEMPT(voluntary) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xab/0xe0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xce/0x650 mm/kasan/report.c:482 kasan_report+0xce/0x100 mm/kasan/report.c:595 memcmp+0x176/0x1d0 lib/string.c:683 uuid_equal include/linux/uuid.h:73 [inline] cxl_payload_from_user_allowed drivers/cxl/core/mbox.c:345 [inline] cxl_mbox_cmd_ctor drivers/cxl/core/mbox.c:368 [inline] cxl_validate_cmd_from_user drivers/cxl/core/mbox.c:522 [inline] cxl_send_cmd+0x9c0/0xb50 drivers/cxl/core/mbox.c:643 __cxl_memdev_ioctl drivers/cxl/core/memdev.c:698 [inline] cxl_memdev_ioctl+0x14f/0x190 drivers/cxl/core/memdev.c:713 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xa8/0x330 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdaf331ba79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdaf1d77038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fdaf3585fa0 RCX: 00007fdaf331ba79 RDX: 00002000000001c0 RSI: 00000000c030ce02 RDI: 0000000000000003 RBP: 00007fdaf33749df R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdaf3586038 R14: 00007fdaf3585fa0 R15: 00007ffced2af768 Add 'in_size' parameter to cxl_payload_from_user_allowed() and validate the payload is large enough. The Linux kernel CVE team has assigned CVE-2026-23327 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 6179045ccc0c6229dc449afc1701dc7fbd40571f and fixed in 6.19.7 with commit 7c8a7b7f063b7e7ae9bba4cbaa14a5d2fe3a55e1 Issue introduced in 5.19 with commit 6179045ccc0c6229dc449afc1701dc7fbd40571f and fixed in 7.0-rc2 with commit 60b5d1f68338aff2c5af0113f04aefa7169c50c2 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-23327 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/cxl/core/mbox.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/7c8a7b7f063b7e7ae9bba4cbaa14a5d2fe3a55e1 https://git.kernel.org/stable/c/60b5d1f68338aff2c5af0113f04aefa7169c50c2