{"id":"CVE-2026-90315","aliases":["CVE-2026-90315"],"related":[],"kind":"vulnerability","state":"published","title":"PCI/sysfs: Add lockdown checks to legacy I/O and memory handlers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/sysfs: Add lockdown checks to legacy I/O and memory handlers\n\nCurrently, the legacy I/O and memory sysfs handlers do not check\nsecurity_locked_down(LOCKDOWN_PCI_ACCESS), leaving the legacy_io and\nlegacy_mem files unprotected when the kernel is locked down.\n\nCommit eb627e17727e (\"PCI: Lock down BAR access when the kernel is locked\ndown\") added the check to pci_write_config(), pci_mmap_resource(), and\npci_write_resource_io() to prevent userspace from programming DMA-capable\nhardware that could be used to modify kernel code, but did not cover the\nlegacy handlers.\n\nAs a result, root can still write arbitrary I/O ports and map the legacy\nI/O and memory spaces while the kernel is locked down, which is the same\ncapability the lockdown is meant to remove.\n\nAdd the same check to pci_write_legacy_io(), pci_mmap_legacy_mem(), and\npci_mmap_legacy_io().\n\nThese generic handlers cover both architectures that define HAVE_PCI_LEGACY\n(such as Alpha and PowerPC).\n\n[bhelgaas: add Link]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/sysfs: Add lockdown checks to legacy I/O and memory handlers\n\nCurrently, the legacy I/O and memory sysfs handlers do not check\nsecurity_locked_down(LOCKDOWN_PCI_ACCESS), leaving the legacy_io and\nlegacy_mem files unprotected when the kernel is locked down.\n\nCommit eb627e17727e (\"PCI: Lock down BAR access when the kernel is locked\ndown\") added the check to pci_write_config(), pci_mmap_resource(), and\npci_write_resource_io() to prevent userspace from programming DMA-capable\nhardware that could be used to modify kernel code, but did not cover the\nlegacy handlers.\n\nAs a result, root can still write arbitrary I/O ports and map the legacy\nI/O and memory spaces while the kernel is locked down, which is the same\ncapability the lockdown is meant to remove.\n\nAdd the same check to pci_write_legacy_io(), pci_mmap_legacy_mem(), and\npci_mmap_legacy_io().\n\nThese generic handlers cover both architectures that define HAVE_PCI_LEGACY\n(such as Alpha and PowerPC).\n\n[bhelgaas: add Link]","source":"cvelist"}],"published":"2026-09-17T16:08:34.218Z","modified":"2026-10-19T09:19:25.460Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"eb627e17727ebeede70697ae1798688b0d328b54","fixed":"3556caa31a2bfbc22c11b812fd4ed8851c2d7bff","status":"affected"},{"type":"git","introduced":"eb627e17727ebeede70697ae1798688b0d328b54","fixed":"cd07aef510ac6a2873e01f9ddddc5492490b0067","status":"affected"},{"type":"git","introduced":"eb627e17727ebeede70697ae1798688b0d328b54","fixed":"747b9bbbbdfdee51aee2456388f9b94b5086de4d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"6.18.57","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/3556caa31a2bfbc22c11b812fd4ed8851c2d7bff","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd07aef510ac6a2873e01f9ddddc5492490b0067","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/747b9bbbbdfdee51aee2456388f9b94b5086de4d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90315","url":"https://www.cve.org/CVERecord?id=CVE-2026-90315","licence":"CVE Terms of Use","modified":"2026-10-19T09:01:31.722Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90315","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90315","licence":"Public domain","modified":"2026-10-19T09:19:25.460Z"}],"updatedAt":"2026-11-25T22:59:39.380Z","epss":{"score":0.00203,"percentile":0.10871,"date":"2026-12-01T12:00:22.000Z"}}