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 B613E30499D for ; Tue, 16 Sep 2025 16:14:46 +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=1758039286; cv=none; b=qX7LiZepUrtVBIfKMJGOPiyoEZt8vbIcR59kCkdwMaSvBgbbWxiA5HJbWRhOjmzQT42h9yBzbWxzDVvR87W/LuJfOuL8y/3FBzr3yXT7bV+n5thxCV5AHIy7GxPOIVIdOZ4i7Uwhb7Yo9hNaIW3M2rSqdIWP4xe7/X5w0tssLpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758039286; c=relaxed/simple; bh=QvNu8S81lWwNH7Ox+I5DiaJoXxEFPunCA1sRtKQ5PeU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PnkB8T2SqaQGK7dvpOTulXxa9Z3baKSRN9PGs2YeFtNzAB6qHYsw5u1BAE3SgGWUUmocH9zGn7OYA5IxaYTMIDtDVSpsf8ftElT93mVaukADTQFGBZo3gZNRJZ7j5+1udVN7fSwvV+OvBTHJZbP60yNy8EFp3gcUXlBMAzmMOuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x25H7UQF; 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="x25H7UQF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4894C4CEEB; Tue, 16 Sep 2025 16:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758039286; bh=QvNu8S81lWwNH7Ox+I5DiaJoXxEFPunCA1sRtKQ5PeU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x25H7UQFTaZWXwOMRtlUOL0ltNdhKMbB6VFnh8b52mhzgU7a+5ZQcQWjzQ0srEZbH gWpm+JcAv+fAQA8UijsftlC3uJRMDrsmPLBJ1xQm/zzavyywQsKpNXysjDNfNbsf/B WsUYxelQr/ppLtx49r9pXbQPZfPaCHL3zlB7JCeE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53327: iommufd/selftest: Catch overflow of uptr and length Date: Tue, 16 Sep 2025 18:12:12 +0200 Message-ID: <2025091645-CVE-2023-53327-55c1@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=3460; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oQjpgb049hRGRRTfwGf3ynsXBGkZxGyjHbYXAqut4/w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknexyVBHn3us5l2fTjyjGt2KAXvbxnt2vHHS86rHfzv leShyBnRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk8zPDXMl9O9WaspkuJZhf aX7Vf5J71WzfYob5tYYHdj3+Nvu23owbL3SNVzuX5F3KAAA= 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/selftest: Catch overflow of uptr and length syzkaller hits a WARN_ON when trying to have a uptr close to UINTPTR_MAX: WARNING: CPU: 1 PID: 393 at drivers/iommu/iommufd/selftest.c:403 iommufd_test+0xb19/0x16f0 Modules linked in: CPU: 1 PID: 393 Comm: repro Not tainted 6.2.0-c9c3395d5e3d #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014 RIP: 0010:iommufd_test+0xb19/0x16f0 Code: 94 c4 31 ff 44 89 e6 e8 a5 54 17 ff 45 84 e4 0f 85 bb 0b 00 00 41 be fb ff ff ff e8 31 53 17 ff e9 a0 f7 ff ff e8 27 53 17 ff <0f> 0b 41 be 8 RSP: 0018:ffffc90000eabdc0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8214c487 RDX: 0000000000000000 RSI: ffff88800f5c8000 RDI: 0000000000000002 RBP: ffffc90000eabe48 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000000 R12: 00000000cd2b0000 R13: 00000000cd2af000 R14: 0000000000000000 R15: ffffc90000eabe68 FS: 00007f94d76d5740(0000) GS:ffff88807dd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000043 CR3: 0000000006880006 CR4: 0000000000770ee0 PKRU: 55555554 Call Trace: ? write_comp_data+0x2f/0x90 iommufd_fops_ioctl+0x1ef/0x310 __x64_sys_ioctl+0x10e/0x160 ? __pfx_iommufd_fops_ioctl+0x10/0x10 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc Check that the user memory range doesn't overflow. The Linux kernel CVE team has assigned CVE-2023-53327 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit f4b20bb34c83dceade5470288f48f94ce3598ada and fixed in 6.2.15 with commit adac6508c235a092b91ed9c0110ecf140e9e9441 Issue introduced in 6.2 with commit f4b20bb34c83dceade5470288f48f94ce3598ada and fixed in 6.3.2 with commit 3fb3505636d033bbf7a0851dac63d01732c51d62 Issue introduced in 6.2 with commit f4b20bb34c83dceade5470288f48f94ce3598ada and fixed in 6.4 with commit fd8c1a4aee973e87d890a5861e106625a33b2c4e 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-53327 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/selftest.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/adac6508c235a092b91ed9c0110ecf140e9e9441 https://git.kernel.org/stable/c/3fb3505636d033bbf7a0851dac63d01732c51d62 https://git.kernel.org/stable/c/fd8c1a4aee973e87d890a5861e106625a33b2c4e