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 AF31B330B3F for ; Wed, 24 Dec 2025 12:29:11 +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=1766579351; cv=none; b=MjcMTuEglVzKqyA29weMrJSn7P6i/dvfEY+YsmZLxfMOl8jBwH7aH1yRhiwZrgmR0IbWmEC07u8ORMyNvHnInBM1AtA4SnI5rwvPflAxqfanwrPzQbHpJ5yPd7Bo9c5VRz8sMiMI84V7DHsbYQHA4YtpYdpQYeymIAZ1cYuTBzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579351; c=relaxed/simple; bh=NWKgI+f9cs8jP+IZ2DpP9AdP9cvgsG525UWpJ+OqGDc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RaKH66cP7gx+HcKTDD2lZcOI4ksyjsL+cXPsRTiLTLd/eYsYuDQ4hIZQ2vpw9zTf7MyRKgmiWg+W8YzYMShkyOyAHAchOOFoKyk0FXJTMIxFYHC1gnHNPpTKz/GJIqeFXMdCgr13gPlDZHDZyqbcqsBaAIm9QQWKuoyUhu29mR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AV9ZL8HR; 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="AV9ZL8HR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 376BDC4CEFB; Wed, 24 Dec 2025 12:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579351; bh=NWKgI+f9cs8jP+IZ2DpP9AdP9cvgsG525UWpJ+OqGDc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=AV9ZL8HRLuzrA9a9Yrq5dgyD0+W/IIf4ZfzPhIqx0qiDE7dBcppJJsblxIUFgyQz5 q975tbaC/mIvw3F4Z3tbCmSjq/TlXCSYVLxs7JJoYI04/ebLwZY9PPmC50sF0v+EoA Jjg6cWMks2o7inf5ddEHF7rcYGKYPonm7RLs9A38= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54056: kheaders: Use array declaration instead of char Date: Wed, 24 Dec 2025 13:26:49 +0100 Message-ID: <2025122426-CVE-2023-54056-fd56@gregkh> X-Mailer: git-send-email 2.52.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=3461; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JsWDDIxJpJkya/VO2KQyTC9nSMSIG10Hvnw20ZbuP1I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnetz+9+Nz0kzOq+8/hv7s2XN3pw5GcsEl5UvE3nmmu2 2QiZykEdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBF6hkWnNt6zeqlq2Wu0jG2 G+qSE5nYyi4fZpjv+yf4A9uldOm4Nx67PikI/jH+2rYVAA== 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: kheaders: Use array declaration instead of char Under CONFIG_FORTIFY_SOURCE, memcpy() will check the size of destination and source buffers. Defining kernel_headers_data as "char" would trip this check. Since these addresses are treated as byte arrays, define them as arrays (as done everywhere else). This was seen with: $ cat /sys/kernel/kheaders.tar.xz >> /dev/null detected buffer overflow in memcpy kernel BUG at lib/string_helpers.c:1027! ... RIP: 0010:fortify_panic+0xf/0x20 [...] Call Trace: ikheaders_read+0x45/0x50 [kheaders] kernfs_fop_read_iter+0x1a4/0x2f0 ... The Linux kernel CVE team has assigned CVE-2023-54056 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 43d8ce9d65a54846d378545770991e65838981e0 and fixed in 5.4.243 with commit 719459877d58c8aced5845c1e5b98d8d87d09197 Issue introduced in 5.2 with commit 43d8ce9d65a54846d378545770991e65838981e0 and fixed in 5.10.180 with commit fcd2da2e6bf2640a31a2a5b118b50dc3635c707b Issue introduced in 5.2 with commit 43d8ce9d65a54846d378545770991e65838981e0 and fixed in 5.15.111 with commit 4a07d2d511e2703efd4387891d49e0326f1157f3 Issue introduced in 5.2 with commit 43d8ce9d65a54846d378545770991e65838981e0 and fixed in 6.1.28 with commit b9f6845a492de20679b84bda6b08be347c5819da Issue introduced in 5.2 with commit 43d8ce9d65a54846d378545770991e65838981e0 and fixed in 6.2.15 with commit d6d1af6b8611801b585c53c0cc63626c8d339e96 Issue introduced in 5.2 with commit 43d8ce9d65a54846d378545770991e65838981e0 and fixed in 6.3.2 with commit 82d2e01b95c439fe55fab5e04fc83387c42d3a48 Issue introduced in 5.2 with commit 43d8ce9d65a54846d378545770991e65838981e0 and fixed in 6.4 with commit b69edab47f1da8edd8e7bfdf8c70f51a2a5d89fb 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-2023-54056 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: kernel/kheaders.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/719459877d58c8aced5845c1e5b98d8d87d09197 https://git.kernel.org/stable/c/fcd2da2e6bf2640a31a2a5b118b50dc3635c707b https://git.kernel.org/stable/c/4a07d2d511e2703efd4387891d49e0326f1157f3 https://git.kernel.org/stable/c/b9f6845a492de20679b84bda6b08be347c5819da https://git.kernel.org/stable/c/d6d1af6b8611801b585c53c0cc63626c8d339e96 https://git.kernel.org/stable/c/82d2e01b95c439fe55fab5e04fc83387c42d3a48 https://git.kernel.org/stable/c/b69edab47f1da8edd8e7bfdf8c70f51a2a5d89fb