CVE-2024-26977: pci_iounmap(): Fix MMIO mapping leak

Description

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

pci_iounmap(): Fix MMIO mapping leak

The #ifdef ARCH_HAS_GENERIC_IOPORT_MAP accidentally also guards iounmap(),
which means MMIO mappings are leaked.

Move the guard so we call iounmap() for MMIO mappings.

Classification

CVE ID: CVE-2024-26977

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 12.41% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://git.kernel.org/stable/c/5e4b23e7a7b33a1e56bfa3e5598138a2234d55b6
https://git.kernel.org/stable/c/6d21d0356aa44157a62e39c0d1a13d4c69a8d0c8
https://git.kernel.org/stable/c/b5d40f02e7222da032c2042aebcf2a07de9b342f
https://git.kernel.org/stable/c/f3749345a9b7295dd071d0ed589634cb46364f77
https://git.kernel.org/stable/c/af280e137e273935f2e09f4d73169998298792ed
https://git.kernel.org/stable/c/7626913652cc786c238e2dd7d8740b17d41b2637

Timeline