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 E50DE1BFE00 for ; Tue, 1 Apr 2025 15:42:51 +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=1743522172; cv=none; b=YRnKPKBug+RHwUjYm2Ah/k7jsh6WDlgTQnlQXOjI87Tbia3Ivc96q0v8TA+PuhMabU1jUn2LOwQG8doDz49jolPknT5MXErPFC3K6uuM2xUimbYrIYcMat/tzgZX7UrdFGrUDtLmtUvIkufBODjS27tlXAXOE7H+h7MmmWUnCJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522172; c=relaxed/simple; bh=t4y7E9fuxxqo0E+44/9IV16SYkhMf01gzjBj90hxJZA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j7DKJvobHATw1ZJPvPj7NNbitP245gMQ6ti4Kg0Sg3VrdLF/OIfzqtZw9oXkoXfmccosYlq9q/eEBPrcLDYVh6hb3x1itbPDW+LaIrdojbOsWU5giWetxM1rSkUre08KOxSvvFrU+ghMwVu43hjYiVBfwLVadBJckpslq5mzKss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AtfECza6; 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="AtfECza6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CD96C4CEE4; Tue, 1 Apr 2025 15:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522171; bh=t4y7E9fuxxqo0E+44/9IV16SYkhMf01gzjBj90hxJZA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AtfECza6s8j8sAhmos0aYPx+buIhZKJH1cCzCMdpuMjV677d2yb17zOs/IXiBw0bI k5qe7WAYd1Se4iJS/25j2wsfN+bfcPA+198qQO6IJgNio9SP185NhP/5fNsLyaiLim EzaetJvxyZ0JBwwBv9lnYSDA6cnnFOQWqzNbxgjM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21950: drivers: virt: acrn: hsm: Use kzalloc to avoid info leak in pmcmd_ioctl Date: Tue, 1 Apr 2025 16:40:14 +0100 Message-ID: <2025040136-CVE-2025-21950-11d2@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=3006; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t4y7E9fuxxqo0E+44/9IV16SYkhMf01gzjBj90hxJZA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvOHZMztx2vVJ8+Y7DKr62Yi3P2pMtZCbKvat+Ysl57 +CFi5fvdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBNVmdY0Dzl5bfjK+69PpO/ 4hF7zTLGy9NYRRhmsz1cJ16YKLKz5+TcPalbm+5kJL5+DgA= 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: drivers: virt: acrn: hsm: Use kzalloc to avoid info leak in pmcmd_ioctl In the "pmcmd_ioctl" function, three memory objects allocated by kmalloc are initialized by "hcall_get_cpu_state", which are then copied to user space. The initializer is indeed implemented in "acrn_hypercall2" (arch/x86/include/asm/acrn.h). There is a risk of information leakage due to uninitialized bytes. The Linux kernel CVE team has assigned CVE-2025-21950 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 3d679d5aec648f50e645702929890b9611998a0b and fixed in 5.15.179 with commit 4e15cf870d2c748e45d45ffc4d5b1dc1b7d50120 Issue introduced in 5.12 with commit 3d679d5aec648f50e645702929890b9611998a0b and fixed in 6.1.131 with commit 524f29d78c9bdeb49f31f5b0376a07d2fc5cf563 Issue introduced in 5.12 with commit 3d679d5aec648f50e645702929890b9611998a0b and fixed in 6.6.83 with commit d7e5031fe3f161c8eb5e84db1540bc4373ed861b Issue introduced in 5.12 with commit 3d679d5aec648f50e645702929890b9611998a0b and fixed in 6.12.19 with commit 1b8f7a2caa7f9cdfd135e3f78eb9d7e36fb95083 Issue introduced in 5.12 with commit 3d679d5aec648f50e645702929890b9611998a0b and fixed in 6.13.7 with commit a4c21b878f0e237f45209a324c903ea7fb05247d Issue introduced in 5.12 with commit 3d679d5aec648f50e645702929890b9611998a0b and fixed in 6.14 with commit 819cec1dc47cdeac8f5dd6ba81c1dbee2a68c3bb 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-21950 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: drivers/virt/acrn/hsm.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/4e15cf870d2c748e45d45ffc4d5b1dc1b7d50120 https://git.kernel.org/stable/c/524f29d78c9bdeb49f31f5b0376a07d2fc5cf563 https://git.kernel.org/stable/c/d7e5031fe3f161c8eb5e84db1540bc4373ed861b https://git.kernel.org/stable/c/1b8f7a2caa7f9cdfd135e3f78eb9d7e36fb95083 https://git.kernel.org/stable/c/a4c21b878f0e237f45209a324c903ea7fb05247d https://git.kernel.org/stable/c/819cec1dc47cdeac8f5dd6ba81c1dbee2a68c3bb