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 808B345BF1 for ; Mon, 20 May 2024 09:48:47 +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=1716198527; cv=none; b=JVshgflRlRrL6oSXWEhUKyZZATFAqTgW6nAQFO1/qOcSRipuj0H8tNDbtlE4n+Hq8uRy/rJS09oPC+qglMPWVCzb0ljZoNqgBYUe+Gj95cltsNHDxJdTt9qmBPeTw7WJA0ZWXhzFsRnIcZ1kTPcTjHpCbhwu51ZQEGKE0VTHOJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198527; c=relaxed/simple; bh=pti0fyYKbyNKChM35aNFeryf9TPtt6xdgKJZgnC2xzY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fqSlAtTA/ZbUXriazKPO1xImj0TyggdzVp89jqAZapcSp5UjB0n3h8LUaBYQKQBVuBDgL7ock7SozRbKmfCALZtQ7cLJLDc7EAnKeV1XEKmsUWlRneHXIu+BzVdBngGjtJCiUuyFYK+b5T1+qPbwUAQrKyJeAktLkZ4n28A/1WM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U7q9edAk; 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="U7q9edAk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6E86C2BD10; Mon, 20 May 2024 09:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716198527; bh=pti0fyYKbyNKChM35aNFeryf9TPtt6xdgKJZgnC2xzY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=U7q9edAk2sC+u//lqD1fg7RZO2MoXK1ym7TG/SOPyfvSCvjEA/QScq4OE+WSsVA/W CTEZCCvt35BqNmX+j2iAWOZ0JB0q8qdeQZbzVF7IFEKOwTkxb90BSyVvw8yKvIdjXK TYIYXtPyPRqCr4hq8Ojgue7I4vHdNRN/WiFupOKQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35988: riscv: Fix TASK_SIZE on 64-bit NOMMU Date: Mon, 20 May 2024 11:48:24 +0200 Message-ID: <2024052019-CVE-2024-35988-22a1@gregkh> X-Mailer: git-send-email 2.45.1 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=2525; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pti0fyYKbyNKChM35aNFeryf9TPtt6xdgKJZgnC2xzY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGneMsmXJvIu5pC7tkHylr3i7UtF3bIzfvQXs6feCpcSm fXUQ1ekI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyqJthQbPlhGaNtMpjPhqp TZEv3/9xLP07jWFBy+qEb4vYPpitUJuv1X/d/4P09ZV7AQ== 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: Fix TASK_SIZE on 64-bit NOMMU On NOMMU, userspace memory can come from anywhere in physical RAM. The current definition of TASK_SIZE is wrong if any RAM exists above 4G, causing spurious failures in the userspace access routines. The Linux kernel CVE team has assigned CVE-2024-35988 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 6bd33e1ece52 and fixed in 5.10.216 with commit 04bf2e5f95c1 Issue introduced in 5.5 with commit 6bd33e1ece52 and fixed in 5.15.158 with commit 52e8a42b1107 Issue introduced in 5.5 with commit 6bd33e1ece52 and fixed in 6.1.90 with commit 4201b8c8f2c3 Issue introduced in 5.5 with commit 6bd33e1ece52 and fixed in 6.6.30 with commit a0f0dbbb1bc4 Issue introduced in 5.5 with commit 6bd33e1ece52 and fixed in 6.8.9 with commit efdcfa554b6e Issue introduced in 5.5 with commit 6bd33e1ece52 and fixed in 6.9 with commit 6065e736f82c 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-35988 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/include/asm/pgtable.h 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/04bf2e5f95c1a52e28a7567a507f926efe31c3b6 https://git.kernel.org/stable/c/52e8a42b11078d2aad4b9ba96503d77c7299168b https://git.kernel.org/stable/c/4201b8c8f2c32af321fb50867e68ac6c1cbed4be https://git.kernel.org/stable/c/a0f0dbbb1bc49fa0de18e92c36492ff6d804cdaa https://git.kernel.org/stable/c/efdcfa554b6eb228943ef1dd4d023c606be647d2 https://git.kernel.org/stable/c/6065e736f82c817c9a597a31ee67f0ce4628e948