{"id":"CVE-2026-92505","revision":"cbbcc227f5944d3dbfe6391fad2e3750","records":[{"revision":"cbbcc227f5944d3dbfe6391fad2e3750","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-92505","aliases":[],"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.","state":0,"publishedAt":"2026-09-17T16:10:17.389+00:00","modifiedAt":"2026-10-19T09:04:11.374+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/iommu/amd/debugfs.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"2e98940f123d9c69d4759078aea9a536244c98d3\",\n                            \"lessThan\": \"8aabe0fba01486b5d893e708b05a8fa7f1b7efbb\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"2e98940f123d9c69d4759078aea9a536244c98d3\",\n                            \"lessThan\": \"99d42aef089a07cfb1d404a7227ac9dc7628b497\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"2e98940f123d9c69d4759078aea9a536244c98d3\",\n                            \"lessThan\": \"843e149989665f8309ad2efe6048dc76591e1f94\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/iommu/amd/debugfs.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.17\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.17\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.52\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.6\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/8aabe0fba01486b5d893e708b05a8fa7f1b7efbb","https://git.kernel.org/stable/c/99d42aef089a07cfb1d404a7227ac9dc7628b497","https://git.kernel.org/stable/c/843e149989665f8309ad2efe6048dc76591e1f94"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-92505","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-92505","identifiers":["CVE-2026-92505"]},"retained":false,"historicalAffected":[]}],"coverage":[]}