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 65912166F32 for ; Wed, 18 Sep 2024 07:20:09 +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=1726644009; cv=none; b=eO0nNdDA0p4z/tPE9II2iAz4CrTh/2KzBZa5pRxTJNMawj9EobkEult3J1Iu3sbsOyBLPUqonuKrcWGguMab8RcAPNqv4k5eZAL5a3GeAPkckn3mjOFMOdGeaBx2sJ42RzWzL1FTwG7dYWE3E1Vjz7s1QEfjQ1Ok9oSKz9mRi/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726644009; c=relaxed/simple; bh=GaHHjhRr91FeToFUUB+clrhmo/GtzHu28Qr2e5QzM+s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jsOnetTWP722EBlz+dK+RfQ1n/4LbL3cCvnhul1iqcWifz/zNDc6pXgHfT40FazEgtwNiij/1Uh/gdAdfBnkTXlgzgXYunq8G9Uppr7cCKU146RXiBj9s9+r/F5G4aqguSX3N7WLqQvDpLtUjtAp316sWoM17Dv1RsUgA/j2MhQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=00KG3veB; 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="00KG3veB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9B28C4CEC3; Wed, 18 Sep 2024 07:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726644009; bh=GaHHjhRr91FeToFUUB+clrhmo/GtzHu28Qr2e5QzM+s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=00KG3veBbkVXAKlTa9VHxGF0qPnOkFY7ACIPn5jzmkbSSsoMilPvsHn9526fV+TU3 KaXBfOygoF6fQKcCRb4KkAjVRkcTXBARWPk0XUNPWMqUdAfrMM2sqnyevnSi8YQ9xq urOUwo1MUT08RUDrgD8GQtDyUoKiQh0EJ+qFF4Gw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46792: riscv: misaligned: Restrict user access to kernel memory Date: Wed, 18 Sep 2024 09:17:27 +0200 Message-ID: <2024091854-CVE-2024-46792-7745@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=1783; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GaHHjhRr91FeToFUUB+clrhmo/GtzHu28Qr2e5QzM+s=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6tK22wr661hGPnQMThVZZv3GPu+Oe0qgS0pLT6DmH /XJl+52xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQYrBnmiovKnTNfZ5a7v53h nmDijbWd5ue1GeZZ9FiImKv4veR8MWNWzOPDB2b08rkCAA== 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: misaligned: Restrict user access to kernel memory raw_copy_{to,from}_user() do not call access_ok(), so this code allowed userspace to access any virtual memory address. The Linux kernel CVE team has assigned CVE-2024-46792 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 7c83232161f6 and fixed in 6.10.10 with commit a3b6ff6c896a Issue introduced in 6.7 with commit 7c83232161f6 and fixed in 6.11 with commit b686ecdeacf6 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-46792 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/kernel/traps_misaligned.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/a3b6ff6c896aee5ef9b581e40d0045ff04fcbc8c https://git.kernel.org/stable/c/b686ecdeacf6658e1348c1a32a08e2e72f7c0f00