# CVE-2026-90315: PCI/sysfs: Add lockdown checks to legacy I/O and memory handlers

- 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 10% of CVEs (2026-12-01)
- Published: 2026-09-17T16:08:34.218Z
- Modified: 2026-10-19T09:19:25.460Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

PCI/sysfs: Add lockdown checks to legacy I/O and memory handlers

Currently, the legacy I/O and memory sysfs handlers do not check
security_locked_down(LOCKDOWN_PCI_ACCESS), leaving the legacy_io and
legacy_mem files unprotected when the kernel is locked down.

Commit eb627e17727e ("PCI: Lock down BAR access when the kernel is locked
down") added the check to pci_write_config(), pci_mmap_resource(), and
pci_write_resource_io() to prevent userspace from programming DMA-capable
hardware that could be used to modify kernel code, but did not cover the
legacy handlers.

As a result, root can still write arbitrary I/O ports and map the legacy
I/O and memory spaces while the kernel is locked down, which is the same
capability the lockdown is meant to remove.

Add the same check to pci_write_legacy_io(), pci_mmap_legacy_mem(), and
pci_mmap_legacy_io().

These generic handlers cover both architectures that define HAVE_PCI_LEGACY
(such as Alpha and PowerPC).

[bhelgaas: add Link]

(As written by CVE List.)

## Affected

- Linux Linux: from eb627e17727ebeede70697ae1798688b0d328b54 before 3556caa31a2bfbc22c11b812fd4ed8851c2d7bff; from eb627e17727ebeede70697ae1798688b0d328b54 before cd07aef510ac6a2873e01f9ddddc5492490b0067; from eb627e17727ebeede70697ae1798688b0d328b54 before 747b9bbbbdfdee51aee2456388f9b94b5086de4d; 5.4 (not affected: before 5.4; from 6.18.57 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/3556caa31a2bfbc22c11b812fd4ed8851c2d7bff>
- <https://git.kernel.org/stable/c/cd07aef510ac6a2873e01f9ddddc5492490b0067>
- <https://git.kernel.org/stable/c/747b9bbbbdfdee51aee2456388f9b94b5086de4d>

## Sources

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

---

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