CVE-2023-53124

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

MEDIUM
5.5
CVSS Score
Published: May 2, 2025 at 03:56 PM UTC
Updated: June 17, 2026 at 06:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.0.165.10.163 ≤ v < 5.10.1765.15.86 ≤ v < 5.15.1045.4.229 ≤ v < 5.4.2386.0.16 ≤ v < 6.16.1.2 ≤ v < 6.1.216.2 ≤ v < 6.2.86.2 ≤ v < 6.35.10.1635.15.865.4.2296.0.166.1.26.26.3 rc16.3 rc26a92129c8f999ff5b122c100ce7f625eb3e98c4b6f6768e2fc8638fabdd8802c2ef693d7aef01db178316e9dfc24906dd474630928ed1d3c562b568ece1a69cc85006b494353911b35171da195d79e25d17bca3ddfe507874cb826d32721552da12e741fd60000cb1195a464080b0efb4949daf7594e0020
Vendor states this is fixed in 090305c36185c0547e4441d4c08f1cf096b32134 (fixed)
Vendor states this is fixed in 6f0c2f70d9929208d8427ec72c3ed91e2251e289 (fixed)
Vendor states this is fixed in 9937f784a608944107dcc2ba9a9c3333f8330b9e (fixed)
Vendor states this is fixed in a26c775ccc4cfe46f9b718b51bd24313053c7e0b (fixed)
Vendor states this is fixed in b5e5bbb3fa5f8412e96c5eda7f4a4af6241d6bd3 (fixed)
Vendor states this is fixed in d3c57724f1569311e4b81e98fad0931028b9bdcd (fixed)
Vendor states this is fixed in 5.10.176 (unaffected)
Vendor states this is fixed in 5.15.104 (unaffected)
Vendor states this is fixed in 5.4.238 (unaffected)
Affected range stops below 6.1, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.1.21 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)
Vendor states this is fixed in 6.2.8 (unaffected)
Vendor states this is fixed in 6.3 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/090305c36185c0547e4441d4c08f1cf096b32134
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6f0c2f70d9929208d8427ec72c3ed91e2251e289
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9937f784a608944107dcc2ba9a9c3333f8330b9e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a26c775ccc4cfe46f9b718b51bd24313053c7e0b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b5e5bbb3fa5f8412e96c5eda7f4a4af6241d6bd3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d3c57724f1569311e4b81e98fad0931028b9bdcd

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card