CVE-2026-92505 PUBLISHED

iommu/amd: Fix undefined behavior in devid_write debugfs function

Assigner: Linux
Reserved: 16.09.2026 Published: 17.09.2026 Updated: 17.09.2026

In the Linux kernel, the following vulnerability has been resolved:

iommu/amd: Fix undefined behavior in devid_write debugfs function

When for_each_pci_segment() loop completes without finding a matching segment, the pci_seg pointer is not NULL but points to an invalid memory location (the list head). Accessing pci_seg->id after the loop causes undefined behavior.

Fix this by handling the successful case inside the loop and returning -EINVAL after the loop if no matching segment is found.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 2e98940f123d9c69d4759078aea9a536244c98d3 to 8aabe0fba01486b5d893e708b05a8fa7f1b7efbb (excl.)
  • affected from 2e98940f123d9c69d4759078aea9a536244c98d3 to 99d42aef089a07cfb1d404a7227ac9dc7628b497 (excl.)
  • affected from 2e98940f123d9c69d4759078aea9a536244c98d3 to 843e149989665f8309ad2efe6048dc76591e1f94 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.17 is affected
  • unaffected from 0 to 6.17 (excl.)
  • unaffected from 6.18.52 to 6.18.* (incl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References