Description (CNA)
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().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected eb627e17727ebeede70697ae1798688b0d328b54 before 6e368485a1ac19fbde0a8b6a332d4545ae72a8ac; affected eb627e17727ebeede70697ae1798688b0d328b54 before ed2cd1fee0ed16a1c2dff49175e65c641eb8ae2b; affected eb627e17727ebeede70697ae1798688b0d328b54 before c3234efe21d4198945492cf7dba6859476f0f6ff; affected eb627e17727ebeede70697ae1798688b0d328b54 before 4de5ff924c0a8ef8166c1a68af9087826e1e8d61; affected eb627e17727ebeede70697ae1798688b0d328b54 before 85f966b1120874fe530edec50d28373ceb06ebcd; affected eb627e17727ebeede70697ae1798688b0d328b54 before 94defb18ac792fd16407d5a52ad0d3f5055c4b43; affected eb627e17727ebeede70697ae1798688b0d328b54 before 257b55dc3d18d7ef01f62a8ff7317871f7597e28; affected eb627e17727ebeede70697ae1798688b0d328b54 before 78a228f0aa0e9eba31955950c8a40a9945e2c8bb |
| Linux / Linux | affected 5.4; unaffected 0 before 5.4; unaffected 5.10.261 through 5.10.*; unaffected 5.15.212 through 5.15.*; unaffected 6.1.178 through 6.1.*; unaffected 6.6.145 through 6.6.*; unaffected 6.12.97 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/6e368485a1ac19fbde0a8b6a332d4545ae72a8ac
- https://git.kernel.org/stable/c/ed2cd1fee0ed16a1c2dff49175e65c641eb8ae2b
- https://git.kernel.org/stable/c/c3234efe21d4198945492cf7dba6859476f0f6ff
- https://git.kernel.org/stable/c/4de5ff924c0a8ef8166c1a68af9087826e1e8d61
- https://git.kernel.org/stable/c/85f966b1120874fe530edec50d28373ceb06ebcd
- https://git.kernel.org/stable/c/94defb18ac792fd16407d5a52ad0d3f5055c4b43
- https://git.kernel.org/stable/c/257b55dc3d18d7ef01f62a8ff7317871f7597e28
- https://git.kernel.org/stable/c/78a228f0aa0e9eba31955950c8a40a9945e2c8bb