# CVE-2026-92505: iommu/amd: Fix undefined behavior in devid_write debugfs function

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-09-17T16:10:17.389Z
- Modified: 2026-10-19T10:16:50.783Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2e98940f123d9c69d4759078aea9a536244c98d3 before 8aabe0fba01486b5d893e708b05a8fa7f1b7efbb; from 2e98940f123d9c69d4759078aea9a536244c98d3 before 99d42aef089a07cfb1d404a7227ac9dc7628b497; from 2e98940f123d9c69d4759078aea9a536244c98d3 before 843e149989665f8309ad2efe6048dc76591e1f94; 6.17 (not affected: before 6.17; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/8aabe0fba01486b5d893e708b05a8fa7f1b7efbb>
- <https://git.kernel.org/stable/c/99d42aef089a07cfb1d404a7227ac9dc7628b497>
- <https://git.kernel.org/stable/c/843e149989665f8309ad2efe6048dc76591e1f94>

## Sources

- CVE List: [CVE-2026-92505](https://www.cve.org/CVERecord?id=CVE-2026-92505), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-92505](https://nvd.nist.gov/vuln/detail/CVE-2026-92505), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-92505 · Whole record: https://cve.day/CVE-2026-92505.json · Rebuilt by cve.day 2026-11-25T22:59:39.427Z
