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 502D918E351 for ; Tue, 20 Aug 2024 23:51:20 +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=1724197880; cv=none; b=kQyEJ7XbKGLHTtHatA3edrT/vl24RJugdAnjcdmG6pqPxb4BkxqehmqeaHyzBPHPVtdXEs1YpCpKKg9066PDhqMWJbZ8zFiyawX+gv5Zl9VBJxXoJ0UMce0tXZzfa3NcUpeX6cB6QBb6RSybH5pQ7q3Pk6IJdBpIhpt9uj8Nnko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724197880; c=relaxed/simple; bh=dhh8NjsFaHUWE/MGSAd1O0p7EkeN1ohNtAu13j7ydto=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VWOwwY9eguuIFr3zJbKEVOzsCj1nPwE22Ju9k3HM6vKg7accRp366XaPU6oxhJvG77oVXfVKLH76gPgJJ0qCNnRhjGHXsJK00KolRNElS7GeHlrYGLTZNr5wZBm6f1uPDhTKJogiFIDP4VmAlpqvKF3cMzWQ1KY1PFl8IrHIuos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pxflPNuC; 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="pxflPNuC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D31B6C4AF0B; Tue, 20 Aug 2024 23:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724197880; bh=dhh8NjsFaHUWE/MGSAd1O0p7EkeN1ohNtAu13j7ydto=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pxflPNuCUpDt6G2GHwXBSp8y9uxQIwWjep7HqmIYNv7K91VODVKgRVSM+ksp1pBqQ Szs5u2Aq44FN/z7BRAkY7Sue+pEoMJC7JLkh5U3FO7kPSc3NjocH90EDUxcdq6fIrM u0rQSLAkwiIr+ARW35b9ETlX/riukk/Bjqxojtjg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43868: riscv/purgatory: align riscv_kernel_entry Date: Wed, 21 Aug 2024 07:51:01 +0800 Message-ID: <2024082157-CVE-2024-43868-9a44@gregkh> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2085; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dhh8NjsFaHUWE/MGSAd1O0p7EkeN1ohNtAu13j7ydto=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHtR+qqi6JbQ+7vNMsytuc8+2s7I2NUZtbUqY+eNPX7 iE39+fsjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIgx3DbJbZtWlClxPmaYoe cMu71eXgY9srzjC/+Le/oN4qg10FTxSYmTjDPZRV9mwAAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: riscv/purgatory: align riscv_kernel_entry When alignment handling is delegated to the kernel, everything must be word-aligned in purgatory, since the trap handler is then set to the kexec one. Without the alignment, hitting the exception would ultimately crash. On other occasions, the kernel's handler would take care of exceptions. This has been tested on a JH7110 SoC with oreboot and its SBI delegating unaligned access exceptions and the kernel configured to handle them. The Linux kernel CVE team has assigned CVE-2024-43868 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 736e30af583f and fixed in 6.10.4 with commit 5d4aaf16a825 Issue introduced in 5.19 with commit 736e30af583f and fixed in 6.11-rc2 with commit fb197c5d2fd2 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-2024-43868 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: arch/riscv/purgatory/entry.S 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/5d4aaf16a8255f7c71790e211724ba029609c5ff https://git.kernel.org/stable/c/fb197c5d2fd24b9af3d4697d0cf778645846d6d5