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 14ECD21D3F3 for ; Tue, 20 May 2025 16:47: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=1747759659; cv=none; b=cSOp7q7Ek0WHqGfOflIlmbNvHNHvWvTxQQ5p4SZ4VaTYuaWEzGhgGaLzgjpFjaN1VS2FIMtR4XMPXeNb6Ui4fTg4suhgKQaxKmPyM075rqn/8HrCG7Qxrnm9wc3CzIwVgeEKFUA01OG18t35+WBop0u7i2xTVqRVwvU6KFf49sU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747759659; c=relaxed/simple; bh=W9BVJr7Iz8ZATzunraox0A9umI7XHSDBPuHgQsQrvVc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XxhHFPsb/MshnY+N/I3xDPDCadhUnRNf99YVhkuC9nWt0EFf3SCqWX2SjZgOBa8xCZLdguVLFrZl4C/1KGNdJRGN6d3V3wseDaA1faxM9xOAF5krG/mZj26RWOMI9pYmDZT54OvNMZICcsTbgqNpPF0cejfNrfi92TCSlzcYMtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m98ZgRj1; 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="m98ZgRj1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21848C4CEE9; Tue, 20 May 2025 16:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747759658; bh=W9BVJr7Iz8ZATzunraox0A9umI7XHSDBPuHgQsQrvVc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=m98ZgRj1bkx3Hxj2lYo5zguanZQiihtHe9PA6LAi21xch79JQsiqXi5SCbgtCDrK/ jG9PkebTAxtI6B/EM3dklvmOoqkwLyFo6ugvAnrtywMy6aSY0r7XlMtiOxanqxXxgJ E/iB2nzr3mi3gDl/pwRqwHcWs6P4BZCUI63wDUD8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37966: riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL Date: Tue, 20 May 2025 18:45:45 +0200 Message-ID: <2025052045-CVE-2025-37966-8d4c@gregkh> X-Mailer: git-send-email 2.49.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=2336; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fY382/pfNUfsy9rh0lIN9dRwli70RDljeknkn2pJ/aQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6G3eGpXw7NWV/YgFLuHfnSpuA9aGelw+p3lqiyDg7c t2cyMA9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRs7kMC67XdYfZ5v7o932x Kr8sv+BW351dTxnmV9+e9uL/s1mX/dOkd4p9WW//wy77PwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL When userspace does PR_SET_TAGGED_ADDR_CTRL, but Supm extension is not available, the kernel crashes: Oops - illegal instruction [#1] [snip] epc : set_tagged_addr_ctrl+0x112/0x15a ra : set_tagged_addr_ctrl+0x74/0x15a epc : ffffffff80011ace ra : ffffffff80011a30 sp : ffffffc60039be10 [snip] status: 0000000200000120 badaddr: 0000000010a79073 cause: 0000000000000002 set_tagged_addr_ctrl+0x112/0x15a __riscv_sys_prctl+0x352/0x73c do_trap_ecall_u+0x17c/0x20c andle_exception+0x150/0x15c Fix it by checking if Supm is available. The Linux kernel CVE team has assigned CVE-2025-37966 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 09d6775f503b393d0457c7126aa43208e1724004 and fixed in 6.14.7 with commit 4b595a2f5656cd45d534ed2160c94f7662adefe5 Issue introduced in 6.13 with commit 09d6775f503b393d0457c7126aa43208e1724004 and fixed in 6.15-rc6 with commit ae08d55807c099357c047dba17624b09414635dd 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-2025-37966 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/process.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/4b595a2f5656cd45d534ed2160c94f7662adefe5 https://git.kernel.org/stable/c/ae08d55807c099357c047dba17624b09414635dd