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 0ED9014F9F2 for ; Wed, 19 Jun 2024 13:56:58 +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=1718805419; cv=none; b=jmts4+lzBa5aO5U1VSwyDS7w9fVbqzo7dyth2CN/JLroNfYQw8f58nL/AU+PqZqp5kxu6jcxzuA430Nd+5599BiSx5hROEHGJU0Wz3bbG7acASJYJmdN5TuG880qxBzpgXGfWGooBtbtLrHOGJamRC1sV6bUAxYmTIg36nNIM7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718805419; c=relaxed/simple; bh=Ja26FNKaS/Xw13sd9ZWQ5hvVuyBg1eh3Qfu4E5+XgVM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rNxtwELuVkuQJIM6Ns8BfdCDYDcbEQ9lbIT0zmT/fL0ECW7YRKFoMPrNzblUWqzRIfi71FGwQXlH1z0jBR2vZIJZxJAxfWhNrYCHhgUYagVSp73H6Ldq28zSswisGr4SsXe43HXxgVqBwv6wRsyX0uZ2smSwYZremFnXVuthTx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zPH1vF20; 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="zPH1vF20" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B76EC4AF07; Wed, 19 Jun 2024 13:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718805418; bh=Ja26FNKaS/Xw13sd9ZWQ5hvVuyBg1eh3Qfu4E5+XgVM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zPH1vF20kA5KJX+tFI38MeJOPxJf/PSxTvZHgCVtp19shTlXw3jZEWGP53ajocpwB B4X92pY2/ScG8Vdz5rsNhc4HEY+mUk/EG0EfO17VEyiJibw3oaEmyRiMVZmGM0n8KY uQ+xz+tnvAUkzCLUo3FCXz/s7pkXL8ZG/mZ65iVs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38614: openrisc: traps: Don't send signals to kernel mode threads Date: Wed, 19 Jun 2024 15:56:27 +0200 Message-ID: <2024061922-CVE-2024-38614-50ce@gregkh> X-Mailer: git-send-email 2.45.2 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=2418; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ja26FNKaS/Xw13sd9ZWQ5hvVuyBg1eh3Qfu4E5+XgVM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFj9t+O7ZzJmZs231OtTQv28zstZ2lqonzqviaMz1JL zYUMTt3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwET67jHMr+v8Fnzu3ZylN9sO GRh/zv05uy5XiWF+4B3WSxUZ/o+YXm0JW3csK3WhwVJrAA== 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: openrisc: traps: Don't send signals to kernel mode threads OpenRISC exception handling sends signals to user processes on floating point exceptions and trap instructions (for debugging) among others. There is a bug where the trap handling logic may send signals to kernel threads, we should not send these signals to kernel threads, if that happens we treat it as an error. This patch adds conditions to die if the kernel receives these exceptions in kernel mode code. The Linux kernel CVE team has assigned CVE-2024-38614 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 27267655c531 and fixed in 6.6.33 with commit c0ed9a711e33 Issue introduced in 6.4 with commit 27267655c531 and fixed in 6.8.12 with commit 075c0405b0d7 Issue introduced in 6.4 with commit 27267655c531 and fixed in 6.9.3 with commit cea9d0015c14 Issue introduced in 6.4 with commit 27267655c531 and fixed in 6.10-rc1 with commit c88cfb5cea5f 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-38614 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/openrisc/kernel/traps.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/c0ed9a711e3392d73e857faa031d8d349c0d70db https://git.kernel.org/stable/c/075c0405b0d7d9fc490609e988a3af0069596538 https://git.kernel.org/stable/c/cea9d0015c140af39477dd5eeb9b20233a45daa9 https://git.kernel.org/stable/c/c88cfb5cea5f8f9868ef02cc9ce9183a26dcf20f