{"id":"CVE-2026-92505","aliases":["CVE-2026-92505"],"related":[],"kind":"vulnerability","state":"published","title":"iommu/amd: Fix undefined behavior in devid_write debugfs function","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/amd: Fix undefined behavior in devid_write debugfs function\n\nWhen for_each_pci_segment() loop completes without finding a matching\nsegment, the pci_seg pointer is not NULL but points to an invalid memory\nlocation (the list head). Accessing pci_seg->id after the loop causes\nundefined behavior.\n\nFix this by handling the successful case inside the loop and returning\n-EINVAL after the loop if no matching segment is found.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/amd: Fix undefined behavior in devid_write debugfs function\n\nWhen for_each_pci_segment() loop completes without finding a matching\nsegment, the pci_seg pointer is not NULL but points to an invalid memory\nlocation (the list head). Accessing pci_seg->id after the loop causes\nundefined behavior.\n\nFix this by handling the successful case inside the loop and returning\n-EINVAL after the loop if no matching segment is found.","source":"cvelist"}],"published":"2026-09-17T16:10:17.389Z","modified":"2026-10-19T10:16:50.783Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2e98940f123d9c69d4759078aea9a536244c98d3","fixed":"8aabe0fba01486b5d893e708b05a8fa7f1b7efbb","status":"affected"},{"type":"git","introduced":"2e98940f123d9c69d4759078aea9a536244c98d3","fixed":"99d42aef089a07cfb1d404a7227ac9dc7628b497","status":"affected"},{"type":"git","introduced":"2e98940f123d9c69d4759078aea9a536244c98d3","fixed":"843e149989665f8309ad2efe6048dc76591e1f94","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8aabe0fba01486b5d893e708b05a8fa7f1b7efbb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99d42aef089a07cfb1d404a7227ac9dc7628b497","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/843e149989665f8309ad2efe6048dc76591e1f94","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-92505","url":"https://www.cve.org/CVERecord?id=CVE-2026-92505","licence":"CVE Terms of Use","modified":"2026-10-19T09:04:11.374Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-92505","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-92505","licence":"Public domain","modified":"2026-10-19T10:16:50.783Z"}],"updatedAt":"2026-11-25T22:59:39.427Z","epss":{"score":0.00198,"percentile":0.09996,"date":"2026-12-01T12:00:22.000Z"}}