In the Linux kernel, the following vulnerability has been resolved:
scsi: lpfc: Fix ioremap issues in lpfcsli4pcimemsetup()
When iftype equals zero and pciresourcestart(pdev, PCI64BITBAR4) returns false, drblregsmemmapp is not remapped. This passes a NULL pointer to iounmap(), which can trigger a WARN() on certain arches.
When iftype equals six and pciresourcestart(pdev, PCI64BITBAR4) returns true, drblregsmemmapp may has been remapped and ctrlregsmemmap_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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53754.json"
}