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 2535716D332 for ; Wed, 21 Aug 2024 06:13:35 +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=1724220815; cv=none; b=jZWgmIAv9+n5GPYMevnt6k4KE18PD6me86buQkhzAzTohbgSv7fk9uM/tthDHmXjVjymZtsBo/Q4m/MNZW3AwuL4EqquivQBa6qRLxKjNDtNtgotW9tfFcuKXtWOxMAaQuJ3cLIXXznqAkzsYP1ixTOgPRdi+diGOETIvDbYJ/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220815; c=relaxed/simple; bh=fKL8hGs1O16CM/zTPSNdrAxqhdUDp5iXwg2fPW91cTc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nm+AUNorM0a5Q1aaFd6ifdfrjI0kCRHyPrcMhJ2htCuNnotcu+beArk2Kz68cCoQQfAiDdh9muVOXvBjZHJgTznoLUGuLQhqzOtZ2IYKEGtcQPwlSr3IY8FGe9xtB2jRPfAjF1NCBv3q+VLohMMUmEUkrGdmxbr7W/IrerIJY9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dXrpEerB; 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="dXrpEerB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A743AC32782; Wed, 21 Aug 2024 06:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220815; bh=fKL8hGs1O16CM/zTPSNdrAxqhdUDp5iXwg2fPW91cTc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dXrpEerB2TkodexV1La3SyW7LGOb6Wimj1nAArHtYEokhp8Z9IMU77KVs43/f1wwt FP1H2npvWtRZhrWKZKOvVBkiG2GlXBXTu80FG4i20oNp4X0BguBPMaCjmZJ84rTBFw 1ljTUQZNYDBFO2EUeQ3uJ39mhoGp/B82k+BwxM3o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48890: scsi: storvsc: Fix swiotlb bounce buffer leak in confidential VM Date: Wed, 21 Aug 2024 14:11:24 +0800 Message-ID: <2024082109-CVE-2022-48890-7f36@gregkh> X-Mailer: git-send-email 2.46.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=2376; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fKL8hGs1O16CM/zTPSNdrAxqhdUDp5iXwg2fPW91cTc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/7uj9qvfEl5xjEWgcdXdeu9fHv+LNmmnfnRq27dS 6sFv2T/dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEwu4zzLNvXD4p/cfllfN4 uHgYT98UvyEcfphhweaH5+x/dLVYJjE8MfiY5VGvPGdSKgA= 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: scsi: storvsc: Fix swiotlb bounce buffer leak in confidential VM storvsc_queuecommand() maps the scatter/gather list using scsi_dma_map(), which in a confidential VM allocates swiotlb bounce buffers. If the I/O submission fails in storvsc_do_io(), the I/O is typically retried by higher level code, but the bounce buffer memory is never freed. The mostly like cause of I/O submission failure is a full VMBus channel ring buffer, which is not uncommon under high I/O loads. Eventually enough bounce buffer memory leaks that the confidential VM can't do any I/O. The same problem can arise in a non-confidential VM with kernel boot parameter swiotlb=force. Fix this by doing scsi_dma_unmap() in the case of an I/O submission error, which frees the bounce buffer memory. The Linux kernel CVE team has assigned CVE-2022-48890 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 743b237c3a7b and fixed in 6.1.7 with commit 87c71e88f6a6 Issue introduced in 5.17 with commit 743b237c3a7b and fixed in 6.2 with commit 67ff3d0a49f3 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-2022-48890 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/scsi/storvsc_drv.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/87c71e88f6a6619ffb1ff88f84dff48ef6d57adb https://git.kernel.org/stable/c/67ff3d0a49f3d445c3922e30a54e03c161da561e