{"id":"CVE-2026-92505","state":"PUBLISHED","title":"iommu/amd: Fix undefined behavior in devid_write debugfs function","description":"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.","publishedAt":"2026-09-17T16:10:17.389Z","updatedAt":"2026-10-19T09:04:11.374Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2e98940f123d9c69d4759078aea9a536244c98d3","status":"affected","lessThan":"8aabe0fba01486b5d893e708b05a8fa7f1b7efbb","versionType":"git"},{"version":"2e98940f123d9c69d4759078aea9a536244c98d3","status":"affected","lessThan":"99d42aef089a07cfb1d404a7227ac9dc7628b497","versionType":"git"},{"version":"2e98940f123d9c69d4759078aea9a536244c98d3","status":"affected","lessThan":"843e149989665f8309ad2efe6048dc76591e1f94","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/amd/debugfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/amd/debugfs.c"]}],"references":["https://git.kernel.org/stable/c/8aabe0fba01486b5d893e708b05a8fa7f1b7efbb","https://git.kernel.org/stable/c/99d42aef089a07cfb1d404a7227ac9dc7628b497","https://git.kernel.org/stable/c/843e149989665f8309ad2efe6048dc76591e1f94"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/92xxx/CVE-2026-92505.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-92505","state":"PUBLISHED","datePublished":"2026-09-17T16:10:17.389Z","dateUpdated":"2026-10-19T09:04:11.374Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-16T12:21:13.872Z"},"containers":{"cna":{"title":"iommu/amd: Fix undefined behavior in devid_write debugfs function","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2e98940f123d9c69d4759078aea9a536244c98d3","status":"affected","lessThan":"8aabe0fba01486b5d893e708b05a8fa7f1b7efbb","versionType":"git"},{"version":"2e98940f123d9c69d4759078aea9a536244c98d3","status":"affected","lessThan":"99d42aef089a07cfb1d404a7227ac9dc7628b497","versionType":"git"},{"version":"2e98940f123d9c69d4759078aea9a536244c98d3","status":"affected","lessThan":"843e149989665f8309ad2efe6048dc76591e1f94","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/amd/debugfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/amd/debugfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8aabe0fba01486b5d893e708b05a8fa7f1b7efbb"},{"url":"https://git.kernel.org/stable/c/99d42aef089a07cfb1d404a7227ac9dc7628b497"},{"url":"https://git.kernel.org/stable/c/843e149989665f8309ad2efe6048dc76591e1f94"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:04:11.374Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}