alpha/PCI: Add security_locked_down() check to pci_mmap_resource()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ eb627e17727ebeede70697ae1798688b0d328b54 · < 94defb18ac792fd16407d5a52ad0d3f5055c4b43| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
alpha/PCI: Add security_locked_down() check to pci_mmap_resource()
Currently, Alpha's pci_mmap_resource() does not check security_locked_down(LOCKDOWN_PCI_ACCESS) before allowing userspace to mmap PCI BARs.
The generic version has had this check since commit eb627e17727e ("PCI: Lock down BAR access when the kernel is locked down") to prevent DMA attacks when the kernel is locked down.
Add the same check to Alpha's pci_mmap_resource().
From the CVE record · Linux
On Alpha systems, the Linux kernel's pci_mmap_resource() does not check whether PCI access is restricted by kernel lockdown before allowing userspace to map PCI BARs. A local user could use that access for a DMA attack even when the kernel is locked down; the input does not specify whether additional privileges are required.
Operators running the Linux kernel on Alpha systems should check their kernel version; affected versions are not specified.