{"id":"CVE-2026-142871","summary":"iommu/amd: remove obsolete domain pointer warning on release","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/amd: remove obsolete domain pointer warning on release\n\nA warning is triggered in amd_iommu_release_device() on removal of a\ndevice with an IOMMU_RESV_DIRECT region. The warning is based on the\nfalse assumption that correct attachment to the release_domain will\nalways result in a NULL dev_data-\u003edomain pointer. For devices with\nIOMMU_RESV_DIRECT (and consequently dev-\u003eiommu-\u003erequire_direct), the\nrelease domain is the permanent identity_domain which sets\nitself to dev_data-\u003edomain on attach.\n\nThis behaviour was added in commit e94160488e65 (\"iommu: Generic support\nfor RMRs during device release\"). Commit c21b34762e2f (\"iommu/amd: Set\nrelease_domain to blocked_domain\") caused it to take effect for AMD\nIOMMU.\n\nRemove the warning as it is no longer strictly an error to have a non-NULL\ndomain pointer. As this leaves amd_iommu_release_device() empty, remove it.\n\nThe warning was observed for a device with direct mapped region:\n\n/sys/bus/pci/devices/0000:04:00.0/iommu_group/reserved_regions:\n\n  0x00000000fee00000 0x00000000feefffff msi\n  0x000000fd00000000 0x000000ffffffffff reserved\n  0x0000fffd00000000 0x0000ffffffffffff direct\n\nUpon hotunplug:\n\n[   28.715475] pcieport 0000:00:03.1: pciehp: Slot(0-3): Link Down\n[   28.715482] pcieport 0000:00:03.1: pciehp: Slot(0-3): Card not present\n[   28.715601] ------------[ cut here ]------------\n[   28.715603] WARNING: drivers/iommu/amd/iommu.c:2521 at amd_iommu_release_device+0x5d/0x70, CPU#4: irq/29-pciehp/99\n[   28.715657] RIP: 0010:amd_iommu_release_device+0x5d/0x70\n[   28.715687] Call Trace:\n[   28.715689]  \u003cTASK\u003e\n[   28.715694]  iommu_deinit_device+0x84/0x110\n[   28.715699]  __iommu_group_remove_device+0xa8/0xd0\n[   28.715703]  iommu_bus_notifier+0x48/0x70\n[   28.715707]  notifier_call_chain+0x48/0xe0\n[   28.715712]  blocking_notifier_call_chain+0x45/0x60\n[   28.715716]  bus_notify+0x3b/0x60\n[   28.715720]  device_del+0x259/0x3b0\n[   28.715730]  pci_remove_bus_device+0x85/0x100\n[   28.715735]  pciehp_unconfigure_device+0x9d/0x180\n[   28.715743]  __pciehp_disable_slot+0x47/0xe0\n[   28.715747]  pciehp_handle_presence_or_link_change+0x80/0x5e0\n[   28.715753]  pciehp_ist+0x162/0x290","modified":"2026-12-03T05:00:57.804673496Z","published":"2026-12-03T03:23:31.478Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142871.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/399c8fb1fafc9114877125bc5c8e3225d4f8222f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fa77b023eb80cdb297ff32f6b13786e483a81ca8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142871.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142871"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c21b34762e2f4a9a255b4ef69a018f8787699bf8"},{"fixed":"399c8fb1fafc9114877125bc5c8e3225d4f8222f"},{"fixed":"fa77b023eb80cdb297ff32f6b13786e483a81ca8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142871.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142871.json"}}],"schema_version":"1.9.2"}