Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 387DD3D3D12 for ; Fri, 28 Aug 2026 06:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899925; cv=none; b=m2h/ZqUtaaKLFCYKROVS0YYFwBEBE7N/+yJifd040I+8uht5OuLB5Ma9y9B9c7ZIXJPD602Boq2Ywupxn60aWsTTF6GH/Sq1EaAHOBkSzUKk5IJfsl3jXctQjLeMxTHwxEx8W6TC5IRWr1svKHinofBBf7lrtRs2AHaOrzus0Rs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899925; c=relaxed/simple; bh=kU4kXd0LTXBykj/2N/0usAzatxaV/d4ZBBQCl1+glDE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rYcWV6kmfTsXLm5PPPdGpU+T23P/Fx1NsecG45blPbmznyAs1FC7J7eMy3ggVf8u/QZoNCsoqD4WGAj2qAXz4riXx6MDX3r0P08BQuCx66bmsWX+79fRhZIRcmIpPAJRtLPCOmLsD9cfxm+MtSTksRdKAFuTvXTIK+AR4lH/Oeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PezW7AP4; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PezW7AP4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7229B1F000E9; Fri, 28 Aug 2026 06:52:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899923; bh=wg58/W1HQ8uJJkkqab2HO3OrI//wNsu0jANbgX1ujOs=; h=From:To:Cc:Subject:Date:Reply-To; b=PezW7AP4fr1w6Y0A1vXPY8RjrL6e8QHWmDuef+jx6OLT/ygNcUabBTSte/BMuhpWN Jo/OVPSspx83QTpyZgMoUEG9GmRI+OerWxR7wiG3BJvS6JtNhTb51uNTLxF1dCgMp9 Qkm9gxtJjel5j157riMesBSIaKss69Rs3dyNJZKs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80662: cxl: Fix CXL_HEADERLOG_SIZE to match RAS Capability size Date: Fri, 28 Aug 2026 08:49:39 +0200 Message-ID: <2026082846-CVE-2026-80662-9cad@gregkh> X-Mailer: git-send-email 2.55.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=3523; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=psoMJzkVtLfU2nUyKZ5WPotisZhFNDaeUbAvx4/TJB8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9f0Ul3xQ77WfdlpP1nJu3L49RpGBJY7Ke5TXPAp9f niuxpq2jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIzkMMc4XXLV8pHvG68ds7 1VdZXCGW2mosPAwLFvV8PVfpXfZV8F5fZkHLJd4FvJ9iAQ== 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: Fix CXL_HEADERLOG_SIZE to match RAS Capability size The CXL r4.0 8.2.4.17.7 RAS Capability Structure has total length 0x58 bytes (CXL_RAS_CAPABILITY_LENGTH); the Header Log occupies the trailing 64 bytes at offset 0x18. CXL_HEADERLOG_SIZE was defined as SZ_512, eight times the actual on-device size. header_log_copy() reads CXL_HEADERLOG_SIZE_U32 (128) dwords from the RAS capability iomap, overrunning the 88-byte mapping by 448 bytes. The cxl_aer_uncorrectable_error trace event memcpy()s CXL_HEADERLOG_SIZE (512) bytes from its source. For the CPER caller the source is struct cxl_ras_capability_regs::header_log[16] (64 bytes) embedded in a stack-local cxl_cper_prot_err_work_data, so the memcpy reads 448 bytes of kernel stack into the trace event ring buffer where userspace can read it via tracefs. Set CXL_HEADERLOG_SIZE to 64 and derive CXL_HEADERLOG_SIZE_U32 from it, bringing all iomap readers into agreement on 16 dwords. Userspace tools such as rasdaemon have grown a dependency on the buggy 512-byte (128 u32) header_log layout in the cxl_aer_uncorrectable_error trace event. Add CXL_HEADERLOG_TRACE_SIZE_U32 = 128 and use it for the trace event __array and its memcpy to preserve that ABI. Both callers now pass a zero-filled u32[CXL_HEADERLOG_TRACE_SIZE_U32] staging buffer with only the first CXL_HEADERLOG_SIZE_U32 (16) entries populated from hardware; the remaining 112 u32s are zero-padded, keeping the 512-byte trace ring buffer layout intact. [ dj: Replaced 64 with SZ_64 per RichardC ] The Linux kernel CVE team has assigned CVE-2026-80662 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 2905cb5236cba63a5dc8a83752dcc31f3cc819f9 and fixed in 6.18.42 with commit 6fc1919a6f2ed541484dd1f6cd93374044f8fd3d Issue introduced in 6.2 with commit 2905cb5236cba63a5dc8a83752dcc31f3cc819f9 and fixed in 7.1.5 with commit fc5eb0962a5e50d64e711817cc24d67df2d90528 Issue introduced in 6.2 with commit 2905cb5236cba63a5dc8a83752dcc31f3cc819f9 and fixed in 7.2 with commit c268f949e219f9e179558e836f457f6c5fbec416 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-80662 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/ras.c drivers/cxl/core/trace.h drivers/cxl/cxl.h 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/6fc1919a6f2ed541484dd1f6cd93374044f8fd3d https://git.kernel.org/stable/c/fc5eb0962a5e50d64e711817cc24d67df2d90528 https://git.kernel.org/stable/c/c268f949e219f9e179558e836f457f6c5fbec416