From mboxrd@z Thu Jan 1 00:00:00 1970 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 854C1D53C for ; Fri, 9 May 2025 06:42:42 +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=1746772962; cv=none; b=dxeNU/Su9uIT06JoXj3obvTYmXI2U2UD9teew/CAOD3ewxU0Jgtqsmqka3+gVOYwmBjCxVD3qZf6JhlwTavyqTQLGXoZHm4sE67yhR4XxfN2AWAaYmDQ8LX1t+8WYMtK/bEh7dSII4Z7OPbffVffJ/jkDxC0VYAvnk1XUfCvNL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746772962; c=relaxed/simple; bh=T9l/xUj10V/ud52YW0ASYBvVF14ExM+M8eSvroIB9Ng=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jk2VqCIkkUieD2eh4vxFmZ4618vEVMu07Otj2tZzemGUvI42ilBNae3+IcPgmAQ07unJE13qasMu5VLpxSOZ8DraM6FYxkxNF7AccwkdzRD545pc5CP3DCXRAgff7pWr1DQO9CWHIz6sSOdfVTLFI4DpeFRv87gvHrPZQf7JIHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WJW+Eclo; 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="WJW+Eclo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BE53C4CEE4; Fri, 9 May 2025 06:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746772962; bh=T9l/xUj10V/ud52YW0ASYBvVF14ExM+M8eSvroIB9Ng=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WJW+Eclo8p9J7bXCNc2OfkO6elW6lq3IhBR0ZYf2DetET5WjQT6I1cLg+1jPa/D9p BMwh5tPjqMGES14S23MeR/s3rnV3AV8+TPxGYRl4fxGv7HW3sSE83SizETr2QdUh9w rzV/BCNSal7Grn/1KLNuv6CC4omeFQmgchmJQb4Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37849: KVM: arm64: Tear down vGIC on failed vCPU creation Date: Fri, 9 May 2025 08:42:27 +0200 Message-ID: <2025050918-CVE-2025-37849-2a30@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=2643; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lCLw6GUXW+LWM5PP5FXibYZlZRl3N5i8QmgZ4s7SSdE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyi09pfFggt6I79EViz+1jEWc13Yr8jVJfONx2uf3MZ KPOettpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRQxcZ5lewMe+q+3K+Wefx S7bv7cemsUTaJjHMz4uI+7z9OecNkxVrla2XCSzjCYyYCwA= 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: KVM: arm64: Tear down vGIC on failed vCPU creation If kvm_arch_vcpu_create() fails to share the vCPU page with the hypervisor, we propagate the error back to the ioctl but leave the vGIC vCPU data initialised. Note only does this leak the corresponding memory when the vCPU is destroyed but it can also lead to use-after-free if the redistributor device handling tries to walk into the vCPU. Add the missing cleanup to kvm_arch_vcpu_create(), ensuring that the vGIC vCPU structures are destroyed on error. The Linux kernel CVE team has assigned CVE-2025-37849 to this issue. Affected and fixed versions =========================== Fixed in 6.1.135 with commit 07476e0d932afc53c05468076393ac35d0b4999e Fixed in 6.6.88 with commit 5085e02362b9948f82fceca979b8f8e12acb1cc5 Fixed in 6.12.24 with commit c322789613407647a05ff5c451a7bf545fb34e73 Fixed in 6.13.12 with commit 2480326eba8ae9ccc5e4c3c2dc8d407db68e3c52 Fixed in 6.14.3 with commit f1e9087abaeedec9bf2894a282ee4f0d8383f299 Fixed in 6.15-rc1 with commit 250f25367b58d8c65a1b060a2dda037eea09a672 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-37849 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/arm64/kvm/arm.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/07476e0d932afc53c05468076393ac35d0b4999e https://git.kernel.org/stable/c/5085e02362b9948f82fceca979b8f8e12acb1cc5 https://git.kernel.org/stable/c/c322789613407647a05ff5c451a7bf545fb34e73 https://git.kernel.org/stable/c/2480326eba8ae9ccc5e4c3c2dc8d407db68e3c52 https://git.kernel.org/stable/c/f1e9087abaeedec9bf2894a282ee4f0d8383f299 https://git.kernel.org/stable/c/250f25367b58d8c65a1b060a2dda037eea09a672