CVE-2026-99515: iommufd: Fix event queue release use-after-free
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iommufd: Fix event queue release use-after-free
iommufd_eventq_fops_release() drops the file's users reference before reading eventq->ictx. Once that reference is dropped, IOMMU_DESTROY in another thread can remove and free the event queue, so the later load accesses freed memory.
Read ictx while the users reference still pins the event queue, then drop the reference and put the saved context. The context reference taken by iommufd_eventq_init() keeps ictx valid until the put. Fault and vEVENTQ file descriptors share this release path.
The Linux kernel CVE team has assigned CVE-2026-99515 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 07838f7fd529c8a6de44b601d4b7057e6c8d36ed and fixed in 6.12.117 with commit e4ed15ae7111ef97c92092998b8fcdbfb25f4fdf Issue introduced in 6.11 with commit 07838f7fd529c8a6de44b601d4b7057e6c8d36ed and fixed in 6.18.61 with commit 439c23b897c8787f2d0c292ba9c1a2ee75595c0d Issue introduced in 6.11 with commit 07838f7fd529c8a6de44b601d4b7057e6c8d36ed and fixed in 7.3.2 with commit 3e0bb6b07a95f730a36f65d959708606ca0d78ce Issue introduced in 6.11 with commit 07838f7fd529c8a6de44b601d4b7057e6c8d36ed and fixed in 7.4-rc1 with commit 440ca8a4b69f40088065b9e05ef11373292a254e
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-2026-99515
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/eventq.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/e4ed15ae7111ef97c92092998b8fcdbfb25f4fdf https://git.kernel.org/stable/c/439c23b897c8787f2d0c292ba9c1a2ee75595c0d https://git.kernel.org/stable/c/3e0bb6b07a95f730a36f65d959708606ca0d78ce https://git.kernel.org/stable/c/440ca8a4b69f40088065b9e05ef11373292a254e