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 47B691BF37 for ; Thu, 1 May 2025 14:15:17 +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=1746108917; cv=none; b=JjX8BkFNmd/ummn9qaZyiwNjBdvrc3tUZnpt70TJSiA46KkotVLxI3hyrAEQ+m+s1FsVi49DARHFRG9QCUj040tglN5yzm63GVNdwHCY/6HOf6AJufUw5AIc3eFv3/8+UCo19RcNaOwN50HOlr07elbOS81NIRhLoA/C7JTSTmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108917; c=relaxed/simple; bh=QpvL7qzRTYTNKksw5k4P2mbaIPHvS6Nv6qof21KsGAg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lhO4YPRK4bnEnglmPgYRZ0zHOquhIfeSpnNc3RBGLbeBom0zqLPDFiMULYZGa1TIcTEIHz0vxxHjUZtH1WPWC3vSalVOTyLNqwmwQWSLUsEAKSId7QD1UQbq32psWeKFpWDlzZiFggbYm4ci+Roezr/2FO3ds+y3jFRP+mG89MM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oMt9GVHb; 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="oMt9GVHb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAEB8C4CEE3; Thu, 1 May 2025 14:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108917; bh=QpvL7qzRTYTNKksw5k4P2mbaIPHvS6Nv6qof21KsGAg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oMt9GVHbUBmHo+ic5RvNjX/ZBxFC75XD33QrMu4K3JoYOhDnavBEE6gGH7FwnBDsj KWRc8I34DUlRMCJqN1YFXYVYbrKtR59ZsOhqdBhjTPy+3sr5Tovr4wVuh78UnEFIpd ibnjl5FlZRgS6JBQALW/gR5zrZ9iHmKpUUvbErfk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49852: riscv: process: fix kernel info leakage Date: Thu, 1 May 2025 16:10:42 +0200 Message-ID: <2025050144-CVE-2022-49852-a851@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=2931; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Zc5Hm2r54T9zFfXj90e4Upc7aH9xTWnk2vKlY2ijxZo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDSs2J54pOhq++7ZQzqG1287lfaoUkM0Imbr60VPbK aWvpEJjO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiEzIY5unsLztxe1HWsa93 jUIXpWQY2iiriTIsWD5PzsRzeoKWW3b+I7Mpq+Yr+70MBAA= 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: process: fix kernel info leakage thread_struct's s[12] may contain random kernel memory content, which may be finally leaked to userspace. This is a security hole. Fix it by clearing the s[12] array in thread_struct when fork. As for kthread case, it's better to clear the s[12] array as well. The Linux kernel CVE team has assigned CVE-2022-49852 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 7db91e57a0acde126a162ababfb1e0ab190130cb and fixed in 4.19.267 with commit c4601d30f7d989b4f354df899ab85b5f7a750d30 Issue introduced in 4.15 with commit 7db91e57a0acde126a162ababfb1e0ab190130cb and fixed in 5.4.225 with commit c5c0b3167537793a7cf936fb240366eefd2fc7fb Issue introduced in 4.15 with commit 7db91e57a0acde126a162ababfb1e0ab190130cb and fixed in 5.10.155 with commit e56d18a976dda653194218df6d40d8122c775712 Issue introduced in 4.15 with commit 7db91e57a0acde126a162ababfb1e0ab190130cb and fixed in 5.15.79 with commit cc36c7fa5d9384602529ba3eea8c5daee7be4dbc Issue introduced in 4.15 with commit 7db91e57a0acde126a162ababfb1e0ab190130cb and fixed in 6.0.9 with commit 358a68f98304b40b201ba5afe94c20355aa3dc68 Issue introduced in 4.15 with commit 7db91e57a0acde126a162ababfb1e0ab190130cb and fixed in 6.1 with commit 6510c78490c490a6636e48b61eeaa6fb65981f4b 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-2022-49852 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/c4601d30f7d989b4f354df899ab85b5f7a750d30 https://git.kernel.org/stable/c/c5c0b3167537793a7cf936fb240366eefd2fc7fb https://git.kernel.org/stable/c/e56d18a976dda653194218df6d40d8122c775712 https://git.kernel.org/stable/c/cc36c7fa5d9384602529ba3eea8c5daee7be4dbc https://git.kernel.org/stable/c/358a68f98304b40b201ba5afe94c20355aa3dc68 https://git.kernel.org/stable/c/6510c78490c490a6636e48b61eeaa6fb65981f4b