Database/Kernel, userspace & hypervisor
Linux kernel (drivers/vfio): Pinned-memory accounting for a VFIO container is lost across exec(), then underflows to a
Impact
Pinned-memory accounting for a VFIO container is lost across exec(), then underflows to a huge unsigned value on unmap. A tenant that maps DMA, execs, and repeats sheds its RLIMIT_MEMLOCK charge each round and can pin host RAM without bound until the node runs out of memory - a noisy-neighbour outage for everyone on the box. The underflow also permanently wedges further DMA maps for that container.
Who can reach it
Any container holding /dev/vfio/vfio and a group fd, using the legacy type1 container. The sequence is map DMA, exec() (the container fd survives), repeat. No host root, no special hardware, no race window to win.
What to do
The record lists no fixed release; boot a kernel carrying the stable fix commits below. Interim controls: put a hard memory cgroup limit on tenants holding VFIO containers rather than relying on RLIMIT_MEMLOCK alone, and drop /dev/vfio from containers that do not need passthrough.
References
Related entries
- Linux kernel (drivers/vfio): A blocked migration-state transition makes the vfio state machine spin forever whileCVE-2026-64474 · Linux kernel (drivers/vfio)Medium
- Linux kernel (drivers/vfio): VFIO core advertised migration ioctls for devices whose driver never actually initialisedCVE-2022-50117 · Linux kernel (drivers/vfio)Medium
- Linux kernel (drivers/vfio): An uninitialized pointer in the VFIO group structure is dereferenced from a group ioctlCVE-2023-54174 · Linux kernel (drivers/vfio)Medium
- Linux kernel (drivers/vfio): Uninitialized kernel stack bytes sitting in a structure hole are copied out to userspaceCVE-2023-54137 · Linux kernel (drivers/vfio)Medium
- Linux kernel (drivers/vfio): Vfio deleted the device before removing its debugfs tree, so debugfs files stay visibleCVE-2026-64473 · Linux kernel (drivers/vfio)Medium
- Linux kernel (drivers/iommu/iommufd): Iommufd accepts a user address plus length that wraps past zero, then asks the mmCVE-2023-54239 · Linux kernel (drivers/iommu/iommufd)Medium
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.