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 8159C31A813 for ; Wed, 24 Dec 2025 10:59: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=1766573975; cv=none; b=ZYO4163IzXrI41+Q86Xc3XDXIDliOIZ7z13fZrqafWVmHryIvik/o2dQ5CaQZtL0/ezkLtv10QpIOOtABkFObxurQPRHUzeFATKh1s2Q1V94K5GcxVXJJkTZ5IWmmIV4by0yOKGuQpgYyOxToxRusxrSUFxeT42dwvUsQBNkisY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573975; c=relaxed/simple; bh=EDXGak5wzJ6XuxeSw4Nj5hEhLChlsXJcUNmwvmSZEts=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CNMerXbprY2aPSm2xZPR85elaSKmdUu9S2MbTl7bllamQRTnOpfEPRN7cE7C/MZdzS6Pj8ZNgyZBhAu+DLIl5kD9YiQ+hdIjMk04O8L5WOunPAoF4fzhrW1WOwyyUcbf31bfVGg1/++S79YmHu6SWNAaqMiCyyonE1FPYMObVbo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ul1ecLPB; 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="Ul1ecLPB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3F5AC4CEFB; Wed, 24 Dec 2025 10:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573975; bh=EDXGak5wzJ6XuxeSw4Nj5hEhLChlsXJcUNmwvmSZEts=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Ul1ecLPB63AckVRELp0UQ1UpAr1xx9WgpHcyziZ4WT+nhupCMZryqfahQQGj93xhQ iK3mEm5XevDqarv0uRKjaipcpDHbzvNfJ6UZk1G1tiREAZbhh+X9NzjlWV4A8nCX9a X4XMC0dRlUXGh1G1NLLt7/pTYR3RznaxDp6ICy9g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54034: iommufd: Make sure to zero vfio_iommu_type1_info before copying to user Date: Wed, 24 Dec 2025 11:57:18 +0100 Message-ID: <2025122438-CVE-2023-54034-3089@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1982; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YPSnsuTMw92fIByFqC/Ns+75wrJ6/So7YYTPq1Alfdw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex56xTd1/cjlX9NqAt56FXxb5aN8M33r58tc4lYKoq 5rfI1N3d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEjpgyzC9/9yLhQkHDEatn fhec3hcsqmziXsMwiznjWUd65VlGrb39bFr7TvgyuO44CQA= 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: iommufd: Make sure to zero vfio_iommu_type1_info before copying to user Missed a zero initialization here. Most of the struct is filled with a copy_from_user(), however minsz for that copy is smaller than the actual struct by 8 bytes, thus we don't fill the padding. The Linux kernel CVE team has assigned CVE-2023-54034 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit d624d6652a65ad4f47a58b8651a1ec1163bb81d3 and fixed in 6.2.3 with commit 7adcec686e4d699c169d34c722132b2bce5232cb Issue introduced in 6.2 with commit d624d6652a65ad4f47a58b8651a1ec1163bb81d3 and fixed in 6.3 with commit b3551ead616318ea155558cdbe7e91495b8d9b33 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-54034 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/iommu/iommufd/vfio_compat.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/7adcec686e4d699c169d34c722132b2bce5232cb https://git.kernel.org/stable/c/b3551ead616318ea155558cdbe7e91495b8d9b33