CVE-2023-53124 scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()
A NULL pointer dereference in the Linux kernel's mpt3sas driver can cause a system crash, requiring a kernel patch to prevent denial of service.
- 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-53124?
CVE-2023-53124 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: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()
Port is allocated by sas_port_alloc_num() and rphy is allocated by either sas_end_device_alloc() or sas_expander_alloc(), all of which may return NULL. So we need to check the rphy to avoid possible NULL pointer access.
If sas_rphy_add() returned with failure, rphy is set to NULL. We would access the rphy in the following lines which would also result NULL pointer access.
Weakness: CWE-476
Which versions are affected by CVE-2023-53124?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53124?
Apply the vendor's patch.
Is CVE-2023-53124 being exploited?
There is no known exploitation of CVE-2023-53124 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53124, DEBIAN-CVE-2023-53124, GHSA-726g-xghf-35vc, UBUNTU-CVE-2023-53124.