Description
In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix ioremap issues in lpfc_sli4_pci_mem_setup() When if_type equals zero and pci_resource_start(pdev, PCI_64BIT_BAR4) returns false, drbl_regs_memmap_p is not remapped. This passes a NULL pointer to iounmap(), which can trigger a WARN() on certain arches. When if_type equals six and pci_resource_start(pdev, PCI_64BIT_BAR4) returns true, drbl_regs_memmap_p may has been remapped and ctrl_regs_memmap_p is not remapped. This is a resource leak and passes a NULL pointer to iounmap(). To fix these issues, we need to add null checks before iounmap(), and change some goto labels.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1351e69fc6db30e186295f1c9495d03cef6a01a2 to < 74d90f92eafe8ccd12827228236a28a94eda6bccaffected1351e69fc6db30e186295f1c9495d03cef6a01a2 to < bab8dc38b1a0a12bc064fc064269033bdcf5b88eaffected1351e69fc6db30e186295f1c9495d03cef6a01a2 to < fd8c83d8375b9dac1949f2753485a5c055ebfad0affected1351e69fc6db30e186295f1c9495d03cef6a01a2 to < e6f1ef4a53856ed000b0f7265d7e16dcb00f4243affected1351e69fc6db30e186295f1c9495d03cef6a01a2 to < 631d0fab143bef85ea0813596f1dda36e2b9724caffected1351e69fc6db30e186295f1c9495d03cef6a01a2 to < 7e5a54d1f00725a739dcd20f616d82eff4f764bdaffected1351e69fc6db30e186295f1c9495d03cef6a01a2 to < 91a0c0c1413239d0548b5aac4c82f38f6d53a91eaffected
Linux Linux
Default version status: affected
4.17affected0 to < 4.17unaffected5.4.243 to ≤ 5.4.*unaffected5.10.180 to ≤ 5.10.*unaffected5.15.111 to ≤ 5.15.*unaffected6.1.28 to ≤ 6.1.*unaffected6.2.15 to ≤ 6.2.*unaffected6.3.2 to ≤ 6.3.*unaffected6.4 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/74d90f92eafe8ccd12827228236a28a94eda6bcc ↗
- https://git.kernel.org/stable/c/bab8dc38b1a0a12bc064fc064269033bdcf5b88e ↗
- https://git.kernel.org/stable/c/fd8c83d8375b9dac1949f2753485a5c055ebfad0 ↗
- https://git.kernel.org/stable/c/e6f1ef4a53856ed000b0f7265d7e16dcb00f4243 ↗
- https://git.kernel.org/stable/c/631d0fab143bef85ea0813596f1dda36e2b9724c ↗
- https://git.kernel.org/stable/c/7e5a54d1f00725a739dcd20f616d82eff4f764bd ↗
- https://git.kernel.org/stable/c/91a0c0c1413239d0548b5aac4c82f38f6d53a91e ↗