[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025123022-CVE-2023-54174-1ff6@gregkh>
Date: Tue, 30 Dec 2025 13:09:42 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-54174: vfio: Fix NULL pointer dereference caused by uninitialized group->iommufd
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
vfio: Fix NULL pointer dereference caused by uninitialized group->iommufd
group->iommufd is not initialized for the iommufd_ctx_put()
[20018.331541] BUG: kernel NULL pointer dereference, address: 0000000000000000
[20018.377508] RIP: 0010:iommufd_ctx_put+0x5/0x10 [iommufd]
...
[20018.476483] Call Trace:
[20018.479214] <TASK>
[20018.481555] vfio_group_fops_unl_ioctl+0x506/0x690 [vfio]
[20018.487586] __x64_sys_ioctl+0x6a/0xb0
[20018.491773] ? trace_hardirqs_on+0xc5/0xe0
[20018.496347] do_syscall_64+0x67/0x90
[20018.500340] entry_SYSCALL_64_after_hwframe+0x4b/0xb5
The Linux kernel CVE team has assigned CVE-2023-54174 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 9eefba8002c27d65ab52a533fd0611b099b73591 and fixed in 6.2.3 with commit 8f24eef598ce7cce0bbefe0ec642bcc031d0f528
Issue introduced in 6.2 with commit 9eefba8002c27d65ab52a533fd0611b099b73591 and fixed in 6.3 with commit d649c34cb916b015fdcb487e51409fcc5caeca8d
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-54174
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/group.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/8f24eef598ce7cce0bbefe0ec642bcc031d0f528
https://git.kernel.org/stable/c/d649c34cb916b015fdcb487e51409fcc5caeca8d
Powered by blists - more mailing lists