CVE-2023-53038 scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()
A missing check for memory allocation failure in the lpfc driver could lead to a null pointer dereference and system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-53038?
CVE-2023-53038 is a medium-severity vulnerability in Linux kernel, published on 2 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()
If kzalloc() fails in lpfc_sli4_cgn_params_read(), then we rely on lpfc_read_object()'s routine to NULL check pdata.
Currently, an early return error is thrown from lpfc_read_object() to protect us from NULL ptr dereference, but the errno code is -ENODEV.
Change the errno code to a more appropriate -ENOMEM.
Weakness: CWE-476
Which versions are affected by CVE-2023-53038?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53038?
Apply the vendor's patch.
Is CVE-2023-53038 being exploited?
There is no known exploitation of CVE-2023-53038 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53038, DEBIAN-CVE-2023-53038, GHSA-p5jx-wj82-3mp4, ROOT-OS-DEBIAN-11-CVE-2023-53038, UBUNTU-CVE-2023-53038.