CVE-2023-53124
scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.4.238, 5.10.176, 5.15.104, 6.1.21, 6.1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5.4.229 · fixed in 5.4.238; From 5.10.163 · fixed in 5.10.176; From 5.15.86 · fixed in 5.15.104; From 6.1.2 · fixed in 6.1.21; From 6.0.16 · fixed in 6.1
- Linux Linux
6.2