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 3B51F79CC for ; Fri, 23 Feb 2024 14:47:31 +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=1708699653; cv=none; b=idISNtmq8HHSMWl7DMi0XRJbHAqlc6dUklpgtekNRpV/HzLEkwq1RV0dxQc38VgkMJyz8F9wcXCg0ygO1Lf6PTedomDIwHO39rALofG4Uym1sP8ght+sQnR9jU+dykqqPGDdv1qsbaJoPf/bbyiC00uIz633OlIJOTVZT7ryPnM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708699653; c=relaxed/simple; bh=JNSgUVp5QQpwhFCVzNQPTy58+JTP1Ptw6qtPqAeCTa8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ArnXXA8GkkKtpi+t6TsUZQkEvMLButppfAHlrkgYeQ2Zsx5fXg9iHExf+FGv985WFcLvpqdjAMJRhOu8FwWDrwYCAVOG/ekT29gODsBa7EYrXCBQnfVRBhHn3hDeTQAjBPXxXrSw4OblA6EOpfIUiN4/VfQeiG+pZoz2/DTEB44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wb2Q8HA7; 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="Wb2Q8HA7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6084AC433F1; Fri, 23 Feb 2024 14:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708699651; bh=JNSgUVp5QQpwhFCVzNQPTy58+JTP1Ptw6qtPqAeCTa8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Wb2Q8HA7J5sXD8h8p5VUv1xzXX5ItC80OfgkFq8JrdOBqlK3TKvC1HS9gWaQt2EqX 3RaUdibdgT+WwHcmH3YSDxc1toJS3NekL+BCegQ/MsMNMQ9nOH0smeGjfcKRal6DIe CfwUf8Ea1Y3ebAchaa/l/heNBB9Uvh8gXfumSrvw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52453: hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume Date: Fri, 23 Feb 2024 15:47:24 +0100 Message-ID: <2024022325-CVE-2023-52453-9f24@gregkh> X-Mailer: git-send-email 2.43.2 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=2750; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JNSgUVp5QQpwhFCVzNQPTy58+JTP1Ptw6qtPqAeCTa8=; b=owGbwMvMwCRo6H6F97bub03G02pJDKk31v+9n6N5VFbm90LlVocX9+bEP3nU+MKjmLWozVE2y /C1meOljlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIntcMC06XnzLIKRKWqn4i knh2/Y7cUxoBFxnm+3dn/ry9m2HWcz0XHs52Ez7r0kUSAA== 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: hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume When the optional PRE_COPY support was added to speed up the device compatibility check, it failed to update the saving/resuming data pointers based on the fd offset. This results in migration data corruption and when the device gets started on the destination the following error is reported in some cases, [ 478.907684] arm-smmu-v3 arm-smmu-v3.2.auto: event 0x10 received: [ 478.913691] arm-smmu-v3 arm-smmu-v3.2.auto: 0x0000310200000010 [ 478.919603] arm-smmu-v3 arm-smmu-v3.2.auto: 0x000002088000007f [ 478.925515] arm-smmu-v3 arm-smmu-v3.2.auto: 0x0000000000000000 [ 478.931425] arm-smmu-v3 arm-smmu-v3.2.auto: 0x0000000000000000 [ 478.947552] hisi_zip 0000:31:00.0: qm_axi_rresp [error status=0x1] found [ 478.955930] hisi_zip 0000:31:00.0: qm_db_timeout [error status=0x400] found [ 478.955944] hisi_zip 0000:31:00.0: qm sq doorbell timeout in function 2 The Linux kernel CVE team has assigned CVE-2023-52453 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit d9a871e4a143 and fixed in 6.6.14 with commit 45f80b2f230d Issue introduced in 6.2 with commit d9a871e4a143 and fixed in 6.7.2 with commit 6bda81e24a35 Issue introduced in 6.2 with commit d9a871e4a143 and fixed in 6.8-rc1 with commit be12ad45e15b Please see https://www.kernel.org or 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-52453 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/vfio/pci/hisilicon/hisi_acc_vfio_pci.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/45f80b2f230df10600e6fa1b83b28bf1c334185e https://git.kernel.org/stable/c/6bda81e24a35a856f58e6a5786de579b07371603 https://git.kernel.org/stable/c/be12ad45e15b5ee0e2526a50266ba1d295d26a88