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 078DA135A68 for ; Tue, 27 Feb 2024 09:49:38 +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=1709027378; cv=none; b=Z1BY9oDRqc75xx5TZAD/6b2FjWXq0HRcLHr5islR1IYxzNgQIphc+B+ghdBfvSj9gOmsp3r0OlAIWDai0yhv1GR+GUkfl4RPdY2H9siLp7dbCkOPJOMNjMftTeRb+3446WhFucO05Ho8d35MO/5y6YPgB4zE/C3ia0RRuro5zg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709027378; c=relaxed/simple; bh=h1tYJ1WSRYHO6R3vcGTjOXfg0E5BaHimJifK7jN51mY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CX6hDhFkZmMk0Q/vLXV5g+YXRRn/ndOjcSNkPYepTauNKf3F26E0E7tHweB5rrmEQRkMX/Gr6UX53HbAerHGDRfNkK0KY4zoqUPUQkUOUs/nyjeLpXcN5LGs5XYNfhNkGZ/7R97okq9z6MB3ZIkWoK+OQAUDkHpdroHsyTDOnzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=skEHVhSV; 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="skEHVhSV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8396DC433F1; Tue, 27 Feb 2024 09:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709027377; bh=h1tYJ1WSRYHO6R3vcGTjOXfg0E5BaHimJifK7jN51mY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=skEHVhSVh+yUKidTDXqxYaG6CPUruFpwFlsjGSJNxvK+wnQiM4pZ4MHetHH7YPHEG bGQF20e20iPP8CrPuxaujIYcOcZb/ucfo/JPEg7P6RP/TY4jSz6VDDHh0eenH90XBd 6c+SEuc12C5nRpFu+THWACKRuhqiaFuicRZIVhCs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46928: parisc: Clear stale IIR value on instruction access rights trap Date: Tue, 27 Feb 2024 10:48:49 +0100 Message-ID: <2024022749-CVE-2021-46928-068d@gregkh> X-Mailer: git-send-email 2.44.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=2273; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h1tYJ1WSRYHO6R3vcGTjOXfg0E5BaHimJifK7jN51mY=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl3NzDm2z+K5C3tS93ZpHpk+0MvwV320+c4mLXNNjRIE 5NdaxfYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPxUGJYcEz1YjPHZmWdpZap 94QWOr0+/s9JlGF+cJPvlRn3hT8+DJplVyHQ5jZ9oUQMAA== 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: parisc: Clear stale IIR value on instruction access rights trap When a trap 7 (Instruction access rights) occurs, this means the CPU couldn't execute an instruction due to missing execute permissions on the memory region. In this case it seems the CPU didn't even fetched the instruction from memory and thus did not store it in the cr19 (IIR) register before calling the trap handler. So, the trap handler will find some random old stale value in cr19. This patch simply overwrites the stale IIR value with a constant magic "bad food" value (0xbaadf00d), in the hope people don't start to try to understand the various random IIR values in trap 7 dumps. The Linux kernel CVE team has assigned CVE-2021-46928 to this issue. Affected and fixed versions =========================== Fixed in 5.10.90 with commit d01e9ce1af61 Fixed in 5.15.13 with commit e96373f0a5f4 Fixed in 5.16 with commit 484730e5862f Please see https://www.kernel.org or 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-2021-46928 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/parisc/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/d01e9ce1af6116f812491d3d3873d204f10ae0b8 https://git.kernel.org/stable/c/e96373f0a5f484bc1e193f9951dcb3adf24bf3f7 https://git.kernel.org/stable/c/484730e5862f6b872dca13840bed40fd7c60fa26