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 D478F149C77 for ; Wed, 3 Apr 2024 14:56:37 +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=1712156197; cv=none; b=P8nQWDjkCgWPg3jVx+a/WiVbLwfh7nasNzdkH7fDPk9ZGWGen07Z1lxH8Tsl2O8Cdym/L3XiU21JShMMwTzV3bXKfzpSqcW2KYGWsPx1+SXoZYwGPYJoE8djbpwIN8Nnoz2L8e0Z5LUGSeycNdkdXWDpCP5aiAjknY8WMfBusCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712156197; c=relaxed/simple; bh=MbMvABrlGndc+tUjJJhGDg+CIIdTgH/+4NItTZJELa4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b9szNVDiNemKe3+YXdO3v6FLo1Uc31sf534oxQ6VQyxxYXS+PBVAyI5HwHSf09i2WyP+pYQR9ap8MBhg+clTTeaGEr47KVV5+00P1y910B8vrF2i1Xfd11Q72uW5sj6c/YcCpCEckhdBPg43dbTbK1LOd3zB60IsLpuVGLI1/YY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=glFjSpgU; 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="glFjSpgU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B8A2C433C7; Wed, 3 Apr 2024 14:56:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712156197; bh=MbMvABrlGndc+tUjJJhGDg+CIIdTgH/+4NItTZJELa4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=glFjSpgUFqcJ4gKXxi7gkReD0VaI8qVOh1tQE744stN3WJK96oL3LTUZ/jipiPAcw RPahmnrXveEqZG5l1GU/cS3lC4BmMTkgYD9qdGniWv9nt9QGv8ltxsPF42kgzdcYgS Y66E2XnmQnka2+6ekLqmkOwfzPB0PRu6/QuvRGXc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52639: KVM: s390: vsie: fix race during shadow creation Date: Wed, 3 Apr 2024 16:55:35 +0200 Message-ID: <2024040335-CVE-2023-52639-5b67@gregkh> X-Mailer: git-send-email 2.44.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=2530; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MbMvABrlGndc+tUjJJhGDg+CIIdTgH/+4NItTZJELa4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8uc833U3/9bDw+p8P8Qm8T7/YNMyvmHT6lXL8HJ+Es rfXLZIcO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiHzMYZrMtOnRIWLWddflG fRPHWw933rVi9WBYcL1g7nT+pJtKgtN15OdYMhze1PBUBgA= 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: KVM: s390: vsie: fix race during shadow creation Right now it is possible to see gmap->private being zero in kvm_s390_vsie_gmap_notifier resulting in a crash. This is due to the fact that we add gmap->private == kvm after creation: static int acquire_gmap_shadow(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) { [...] gmap = gmap_shadow(vcpu->arch.gmap, asce, edat); if (IS_ERR(gmap)) return PTR_ERR(gmap); gmap->private = vcpu->kvm; Let children inherit the private field of the parent. The Linux kernel CVE team has assigned CVE-2023-52639 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit a3508fbe9dc6 and fixed in 6.1.82 with commit 5df3b81a567e Issue introduced in 4.8 with commit a3508fbe9dc6 and fixed in 6.6.22 with commit f5572c0323cf Issue introduced in 4.8 with commit a3508fbe9dc6 and fixed in 6.7.6 with commit 28bb27824f25 Issue introduced in 4.8 with commit a3508fbe9dc6 and fixed in 6.8 with commit fe752331d4b3 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-2023-52639 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/s390/kvm/vsie.c arch/s390/mm/gmap.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/5df3b81a567eb565029563f26f374ae3803a1dfc https://git.kernel.org/stable/c/f5572c0323cf8b4f1f0618178648a25b8fb8a380 https://git.kernel.org/stable/c/28bb27824f25f36e5f80229a358d66ee09244082 https://git.kernel.org/stable/c/fe752331d4b361d43cfd0b89534b4b2176057c32