Skip to main content
← All vulnerabilities
CVE-2023-53124

scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.238, 5.10.176, 5.15.104, 6.1.21, 6.1
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

  1. CVE published
  2. 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

References 6

git.kernel.org