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 7C775165F04 for ; Wed, 18 Sep 2024 07:18:48 +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=1726643928; cv=none; b=kmV0jDYzjO5fClBJ0ixJZUryqZD4yEslb6hBVJ4ozeD8S+gnxkMlt/OMJOWr6hApr8pN5efw9TrYV51QMhyvgjtxLWyVcNrLIbLYv45V+mdJxWiimnZwJp7eMo2URhPM2I2Y62eTjGS1B0PP58j9IsX1NNKzljMg1fKkioELgSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643928; c=relaxed/simple; bh=IERAxp53Akpfu1hnQUle4rNet+w9uPNfu5XoZJA3/rk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FnyabDsQhZk1EE1HTd0/YlWE2cvlRbIzBfU9CzC8bHHv9cfG0MW60ZxmE55/ahbq1YK+TBGZpXMX35+lUj5xrZG8lxVy/0CPQgrtbLwiyvzD/jce0rhu3M3pSjDY0X9mnkfc+8DsPoDFohYUxdL2x2BhpHHIf/Q5Iiwi4PwwgW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dWy7Qfu0; 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="dWy7Qfu0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2D13C4CEC3; Wed, 18 Sep 2024 07:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643928; bh=IERAxp53Akpfu1hnQUle4rNet+w9uPNfu5XoZJA3/rk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dWy7Qfu0NTICJCK21+OLlzWHQgI6kpSMLVCIJZ10gxFAq/cRhVM9iG8Gfrf/iGSL1 QKJxaerhk39k57Dpga8rKHWaujfG/C0D5q/S1LmUzeCQrEc7SsM8SGyiOnj9D4OLPw QLZ7izeIdVgwVVO7DW55qPas1FklolkQkCTUtY6w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46774: powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas() Date: Wed, 18 Sep 2024 09:17:09 +0200 Message-ID: <2024091847-CVE-2024-46774-48d9@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=1991; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IERAxp53Akpfu1hnQUle4rNet+w9uPNfu5XoZJA3/rk=; b=kA0DAAIRMUfUDdst+ykByyZiAGbqfl+jtLTVVD8yOuy5tTvFTDcz3tSikzFiJRoaAldLy0OKJ ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmbqfl8ACgkQMUfUDdst+yk38QCgrHyG aUUCxkmYqc3ml8NndUEhGpcAoI/zeLlukEDYXXYWd4FQ8OczLvRJ 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: powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas() Smatch warns: arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential spectre issue 'args.args' [r] (local cap) The 'nargs' and 'nret' locals come directly from a user-supplied buffer and are used as indexes into a small stack-based array and as inputs to copy_to_user() after they are subject to bounds checks. Use array_index_nospec() after the bounds checks to clamp these values for speculative execution. The Linux kernel CVE team has assigned CVE-2024-46774 to this issue. Affected and fixed versions =========================== Fixed in 6.10.10 with commit 68d815648094 Fixed in 6.11 with commit 0974d03eb479 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-46774 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/powerpc/kernel/rtas.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/68d8156480940b79227d58865ec5d2947b9384a8 https://git.kernel.org/stable/c/0974d03eb479384466d828d65637814bee6b26d7