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 D7F3F2D47E9 for ; Mon, 15 Sep 2025 14:23: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=1757946222; cv=none; b=QUBZCy2JX7LNzpVW+zR/pXHpsgTMazT91LCnMwJWdLar/dwBGmPY2CcoUL1KdRFXVdb8iK7/kaxQtZrVCoWzzVmvefQkF/h9enCqLPXwdHRvXWV+1be5eyaZ0F+DXXgXi0mWflAEThdauziGpl2+qo3jCnE6DYuQ4/gF1xUMFoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946222; c=relaxed/simple; bh=9LcDln6ECEvqulLPLMLttppdgmQco790Vw4qiIENMM8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hPtfs/ndgQlGAFU8fD0IHU4n2gRzZ1KyS/t9jVZiJyt5rWYTqh5kFD2olsQMOzTMnvrmV6/mOz2jOVRITSpru8zKuuaLVhJ2gBG9VKT7UWxuWLrlH+WDVjpU6sHYPtLyCtrVWeozy+mKzTF1aMXFAENLrgc87WketszXkwtDvAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ce6b9klT; 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="ce6b9klT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00FF9C4CEF5; Mon, 15 Sep 2025 14:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946222; bh=9LcDln6ECEvqulLPLMLttppdgmQco790Vw4qiIENMM8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ce6b9klTB8C/vo/PxFyJj79b+imWXeDa6W2w5ZhNlCYb9+KDSMclpkASge339sQSg LzhWGCUtyqNPqAGd2JSetJE00TSfFKpgGZkSpRF8jHlqR/LBWJD2uzCksE5a6iO4o7 9QF3yVGoRh95IVBtn0+espC51bYNL5K7xP4R+0BE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53205: KVM: s390/diag: fix racy access of physical cpu number in diag 9c handler Date: Mon, 15 Sep 2025 16:21:39 +0200 Message-ID: <2025091510-CVE-2023-53205-9a2b@gregkh> X-Mailer: git-send-email 2.51.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=2425; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DVyzrN75EkTAYZ2jqeTbl9DLU9ZrAUy77I9GRaMxE3U=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFK7dUHbwElrUOUmZKej4uqvxsXxZgjm3LzXtyKnr+ ye+NcK6I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyupRhnma78r1L6x2iHk2+ IMDgI9V6T0plK8M8u7jD999o2Oz7etDmY+eHk3u+57/hAAA= 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: s390/diag: fix racy access of physical cpu number in diag 9c handler We do check for target CPU == -1, but this might change at the time we are going to use it. Hold the physical target CPU in a local variable to avoid out-of-bound accesses to the cpu arrays. The Linux kernel CVE team has assigned CVE-2023-53205 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 87e28a15c42cc592009c32a8c20e5789059027c2 and fixed in 5.15.121 with commit a9ccf140a2a03a0ae82be4bdfbdd17bdaea72ff5 Issue introduced in 5.13 with commit 87e28a15c42cc592009c32a8c20e5789059027c2 and fixed in 6.1.39 with commit 86bfb18bad60fc468e5f112cbbd918462a8dd435 Issue introduced in 5.13 with commit 87e28a15c42cc592009c32a8c20e5789059027c2 and fixed in 6.4.4 with commit dc7e0192c470a53d847c79a2796f9ac429477a26 Issue introduced in 5.13 with commit 87e28a15c42cc592009c32a8c20e5789059027c2 and fixed in 6.5 with commit 0bc380beb78aa352eadbc21d934dd9606fcee808 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-53205 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/diag.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/a9ccf140a2a03a0ae82be4bdfbdd17bdaea72ff5 https://git.kernel.org/stable/c/86bfb18bad60fc468e5f112cbbd918462a8dd435 https://git.kernel.org/stable/c/dc7e0192c470a53d847c79a2796f9ac429477a26 https://git.kernel.org/stable/c/0bc380beb78aa352eadbc21d934dd9606fcee808