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 42BEC78F2D for ; Sun, 29 Dec 2024 11:30:36 +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=1735471837; cv=none; b=AWCz/pHUkyNxrZ9dJG96DIQmNWkYeZzRjs86eSzlbf8iItZhY5nCek4gcOjOoUBeH4gc3p3IItnP3qAXVTHmcfeM6BMOVrork+4euY+UERb5AB7UBc4Dy1kushZ3yG6oCqkj71gN6mKdecfPUsBB6CNMpoY6n7KB8nG1M11vRY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735471837; c=relaxed/simple; bh=cki/NAscGv1/PBf3pa8CV9iBp+Nm/DDEE6sug2llnFM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tIFWS8btmzwg3zxDQi8OL1P2f6DdzoA2FjKzXfVXyhcrPxYGj2FjpWOTjAHZ/7uMA4wWESRr5ry9D4jW6s2GYjNmdBEsy+Ooxpa5bFwHp5ocKnzmp8GKwz3U9+BJHEhfJXWZ9KSAUmhbpMkvNAaWIzkYoyBaKejFdBHUpEsaipQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OMOwae83; 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="OMOwae83" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6101EC4CED1; Sun, 29 Dec 2024 11:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735471836; bh=cki/NAscGv1/PBf3pa8CV9iBp+Nm/DDEE6sug2llnFM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OMOwae83bzqiV042ieMGaQhrf8NX5iueJwsINUnkvlpz/gxalMVaZEgYJif6aBEFk 2oK69D/dPBu25S3eyRlxWWPM3Z8n646fi2NviBUCinvhA4kZ3ie5xTbAS9en+QEmH4 TNyF0YC3Owh54P144UHd+SQnZeD6BU3oI17bCVog= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56742: vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages() Date: Sun, 29 Dec 2024 12:29:35 +0100 Message-ID: <2024122925-CVE-2024-56742-b3d2@gregkh> X-Mailer: git-send-email 2.47.1 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=2281; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cki/NAscGv1/PBf3pa8CV9iBp+Nm/DDEE6sug2llnFM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmFRlNNP6qbbv6076PLHeMX1SGMFq/evb4nd8gyrl72s bcaK8/9jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIV1GGeeYp8icks6INNW6v Dj/7SlZlX/bkfIYFbXoHOo9G5op5bBFTOrjynyvz+h1FAA== 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: vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages() Fix an unwind issue in mlx5vf_add_migration_pages(). If a set of pages is allocated but fails to be added to the SG table, they need to be freed to prevent a memory leak. Any pages successfully added to the SG table will be freed as part of mlx5vf_free_data_buffer(). The Linux kernel CVE team has assigned CVE-2024-56742 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 6fadb021266d03c5fd7bca2cfa1607efd246dad1 and fixed in 6.11.11 with commit 769fe4ce444b646b0bf6ac308de80686c730c7df Issue introduced in 5.18 with commit 6fadb021266d03c5fd7bca2cfa1607efd246dad1 and fixed in 6.12.2 with commit c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5 Issue introduced in 5.18 with commit 6fadb021266d03c5fd7bca2cfa1607efd246dad1 and fixed in 6.13-rc1 with commit 22e87bf3f77c18f5982c19ffe2732ef0c7a25f16 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-2024-56742 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/mlx5/cmd.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/769fe4ce444b646b0bf6ac308de80686c730c7df https://git.kernel.org/stable/c/c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5 https://git.kernel.org/stable/c/22e87bf3f77c18f5982c19ffe2732ef0c7a25f16