CVE-2026-142871: iommu/amd: remove obsolete domain pointer warning on release
In the Linux kernel, the following vulnerability has been resolved:
iommu/amd: remove obsolete domain pointer warning on release
A warning is triggered in amdiommureleasedevice() on removal of a device with an IOMMURESVDIRECT region. The warning is based on the false assumption that correct attachment to the releasedomain will always result in a NULL devdata->domain pointer. For devices with IOMMURESVDIRECT (and consequently dev->iommu->requiredirect), the release domain is the permanent identitydomain which sets itself to devdata->domain on attach.
This behaviour was added in commit e94160488e65 ("iommu: Generic support for RMRs during device release"). Commit c21b34762e2f ("iommu/amd: Set releasedomain to blockeddomain") caused it to take effect for AMD IOMMU.
Remove the warning as it is no longer strictly an error to have a non-NULL domain pointer. As this leaves amdiommureleasedevice() empty, remove it.
The warning was observed for a device with direct mapped region:
/sys/bus/pci/devices/0000:04:00.0/iommugroup/reservedregions:
0x00000000fee00000 0x00000000feefffff msi 0x000000fd00000000 0x000000ffffffffff reserved 0x0000fffd00000000 0x0000ffffffffffff direct
Upon hotunplug:
[ 28.715475] pcieport 0000:00:03.1: pciehp: Slot(0-3): Link Down [ 28.715482] pcieport 0000:00:03.1: pciehp: Slot(0-3): Card not present [ 28.715601] ------------[ cut here ]------------ [ 28.715603] WARNING: drivers/iommu/amd/iommu.c:2521 at amdiommureleasedevice+0x5d/0x70, CPU#4: irq/29-pciehp/99 [ 28.715657] RIP: 0010:amdiommureleasedevice+0x5d/0x70 [ 28.715687] Call Trace: [ 28.715689] <TASK> [ 28.715694] iommudeinitdevice+0x84/0x110 [ 28.715699] iommugroupremovedevice+0xa8/0xd0 [ 28.715703] iommubusnotifier+0x48/0x70 [ 28.715707] notifiercallchain+0x48/0xe0 [ 28.715712] blockingnotifiercallchain+0x45/0x60 [ 28.715716] busnotify+0x3b/0x60 [ 28.715720] devicedel+0x259/0x3b0 [ 28.715730] pciremovebusdevice+0x85/0x100 [ 28.715735] pciehpunconfiguredevice+0x9d/0x180 [ 28.715743] pciehpdisableslot+0x47/0xe0 [ 28.715747] pciehphandlepresenceorlinkchange+0x80/0x5e0 [ 28.715753] pciehpist+0x162/0x290
Affected Software
Event History
Frequently Asked Questions
Which systems are affected by the warning?
Systems using the AMD IOMMU are affected when a device has an IOMMU_RESV_DIRECT reserved region and is removed. In this case, the device may be attached to the permanent identity domain, leaving its domain pointer non-NULL during release.
How can I tell whether this condition is present?
The warning is triggered during device removal in amd_iommu_release_device(). A device's iommu_group/reserved_regions entry can show a direct-mapped region; the reported example included a region labeled "direct".