CVE-2023-53124

Source
https://cve.org/CVERecord?id=CVE-2023-53124
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53124.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53124
Downstream
Related
Published
2025-05-02T15:56:00.500Z
Modified
2026-03-20T12:32:58.585065Z
Summary
scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

Port is allocated by sasportallocnum() and rphy is allocated by either sasenddevicealloc() or sasexpanderalloc(), all of which may return NULL. So we need to check the rphy to avoid possible NULL pointer access.

If sasrphyadd() returned with failure, rphy is set to NULL. We would access the rphy in the following lines which would also result NULL pointer access.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53124.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d60000cb1195a464080b0efb4949daf7594e0020
Fixed
090305c36185c0547e4441d4c08f1cf096b32134
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ce1a69cc85006b494353911b35171da195d79e25
Fixed
6f0c2f70d9929208d8427ec72c3ed91e2251e289
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6a92129c8f999ff5b122c100ce7f625eb3e98c4b
Fixed
9937f784a608944107dcc2ba9a9c3333f8330b9e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d17bca3ddfe507874cb826d32721552da12e741f
Fixed
b5e5bbb3fa5f8412e96c5eda7f4a4af6241d6bd3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
78316e9dfc24906dd474630928ed1d3c562b568e
Fixed
a26c775ccc4cfe46f9b718b51bd24313053c7e0b
Fixed
d3c57724f1569311e4b81e98fad0931028b9bdcd
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
6f6768e2fc8638fabdd8802c2ef693d7aef01db1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53124.json"