CVE-2024-43821
kernel: scsi: lpfc: Fix a possible null pointer dereference
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 17, 2024
Updated · September 13, 2026
Description
A flaw was found in the Linux kernel. A local attacker with elevated privileges could exploit a null pointer dereference vulnerability within the scsi: lpfc component. This occurs when memory allocation fails in the lpfc_xcvr_data_show function, causing a critical pointer to become null. Subsequent operations attempt to use this null pointer, which can lead to a system crash and result in a denial of service.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this vulnerability, prevent the lpfc kernel module from loading if Fibre Channel storage is not in use. This can be achieved by blacklisting the module.
- Create
/etc/modprobe.d/blacklist-lpfc.confwithblacklist lpfc. - Regenerate the initramfs:
dracut -f -v(RHEL 7) ordracut -f --regenerate-all(RHEL 8/9). - Reboot the system.
This action will disable Fibre Channel functionality that relies on the lpfc driver.
CVSS / CWE
CVSS 3.1 · 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
CWE-476 · NULL Pointer Dereference