{"id":"CVE-2023-53124","state":"PUBLISHED","title":"scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()\n\nPort is allocated by sas_port_alloc_num() and rphy is allocated by either\nsas_end_device_alloc() or sas_expander_alloc(), all of which may return\nNULL. So we need to check the rphy to avoid possible NULL pointer access.\n\nIf sas_rphy_add() returned with failure, rphy is set to NULL. We would\naccess the rphy in the following lines which would also result NULL pointer\naccess.","publishedAt":"2025-05-02T15:56:00.500Z","updatedAt":"2026-05-23T15:28:07.408Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d60000cb1195a464080b0efb4949daf7594e0020","status":"affected","lessThan":"090305c36185c0547e4441d4c08f1cf096b32134","versionType":"git"},{"version":"ce1a69cc85006b494353911b35171da195d79e25","status":"affected","lessThan":"6f0c2f70d9929208d8427ec72c3ed91e2251e289","versionType":"git"},{"version":"6a92129c8f999ff5b122c100ce7f625eb3e98c4b","status":"affected","lessThan":"9937f784a608944107dcc2ba9a9c3333f8330b9e","versionType":"git"},{"version":"d17bca3ddfe507874cb826d32721552da12e741f","status":"affected","lessThan":"b5e5bbb3fa5f8412e96c5eda7f4a4af6241d6bd3","versionType":"git"},{"version":"78316e9dfc24906dd474630928ed1d3c562b568e","status":"affected","lessThan":"a26c775ccc4cfe46f9b718b51bd24313053c7e0b","versionType":"git"},{"version":"78316e9dfc24906dd474630928ed1d3c562b568e","status":"affected","lessThan":"d3c57724f1569311e4b81e98fad0931028b9bdcd","versionType":"git"},{"version":"6f6768e2fc8638fabdd8802c2ef693d7aef01db1","status":"affected","versionType":"git"},{"version":"5.4.229","status":"affected","lessThan":"5.4.238","versionType":"semver"},{"version":"5.10.163","status":"affected","lessThan":"5.10.176","versionType":"semver"},{"version":"5.15.86","status":"affected","lessThan":"5.15.104","versionType":"semver"},{"version":"6.1.2","status":"affected","lessThan":"6.1.21","versionType":"semver"},{"version":"6.0.16","status":"affected","lessThan":"6.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/mpt3sas/mpt3sas_transport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"5.4.238","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.176","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.104","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.21","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.8","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/mpt3sas/mpt3sas_transport.c"]}],"references":["https://git.kernel.org/stable/c/090305c36185c0547e4441d4c08f1cf096b32134","https://git.kernel.org/stable/c/6f0c2f70d9929208d8427ec72c3ed91e2251e289","https://git.kernel.org/stable/c/9937f784a608944107dcc2ba9a9c3333f8330b9e","https://git.kernel.org/stable/c/b5e5bbb3fa5f8412e96c5eda7f4a4af6241d6bd3","https://git.kernel.org/stable/c/a26c775ccc4cfe46f9b718b51bd24313053c7e0b","https://git.kernel.org/stable/c/d3c57724f1569311e4b81e98fad0931028b9bdcd"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53124.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53124","state":"PUBLISHED","datePublished":"2025-05-02T15:56:00.500Z","dateUpdated":"2026-05-23T15:28:07.408Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-05-02T15:51:43.555Z"},"containers":{"cna":{"title":"scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()\n\nPort is allocated by sas_port_alloc_num() and rphy is allocated by either\nsas_end_device_alloc() or sas_expander_alloc(), all of which may return\nNULL. So we need to check the rphy to avoid possible NULL pointer access.\n\nIf sas_rphy_add() returned with failure, rphy is set to NULL. We would\naccess the rphy in the following lines which would also result NULL pointer\naccess."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d60000cb1195a464080b0efb4949daf7594e0020","status":"affected","lessThan":"090305c36185c0547e4441d4c08f1cf096b32134","versionType":"git"},{"version":"ce1a69cc85006b494353911b35171da195d79e25","status":"affected","lessThan":"6f0c2f70d9929208d8427ec72c3ed91e2251e289","versionType":"git"},{"version":"6a92129c8f999ff5b122c100ce7f625eb3e98c4b","status":"affected","lessThan":"9937f784a608944107dcc2ba9a9c3333f8330b9e","versionType":"git"},{"version":"d17bca3ddfe507874cb826d32721552da12e741f","status":"affected","lessThan":"b5e5bbb3fa5f8412e96c5eda7f4a4af6241d6bd3","versionType":"git"},{"version":"78316e9dfc24906dd474630928ed1d3c562b568e","status":"affected","lessThan":"a26c775ccc4cfe46f9b718b51bd24313053c7e0b","versionType":"git"},{"version":"78316e9dfc24906dd474630928ed1d3c562b568e","status":"affected","lessThan":"d3c57724f1569311e4b81e98fad0931028b9bdcd","versionType":"git"},{"version":"6f6768e2fc8638fabdd8802c2ef693d7aef01db1","status":"affected","versionType":"git"},{"version":"5.4.229","status":"affected","lessThan":"5.4.238","versionType":"semver"},{"version":"5.10.163","status":"affected","lessThan":"5.10.176","versionType":"semver"},{"version":"5.15.86","status":"affected","lessThan":"5.15.104","versionType":"semver"},{"version":"6.1.2","status":"affected","lessThan":"6.1.21","versionType":"semver"},{"version":"6.0.16","status":"affected","lessThan":"6.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/mpt3sas/mpt3sas_transport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"5.4.238","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.176","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.104","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.21","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.8","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/mpt3sas/mpt3sas_transport.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/090305c36185c0547e4441d4c08f1cf096b32134"},{"url":"https://git.kernel.org/stable/c/6f0c2f70d9929208d8427ec72c3ed91e2251e289"},{"url":"https://git.kernel.org/stable/c/9937f784a608944107dcc2ba9a9c3333f8330b9e"},{"url":"https://git.kernel.org/stable/c/b5e5bbb3fa5f8412e96c5eda7f4a4af6241d6bd3"},{"url":"https://git.kernel.org/stable/c/a26c775ccc4cfe46f9b718b51bd24313053c7e0b"},{"url":"https://git.kernel.org/stable/c/d3c57724f1569311e4b81e98fad0931028b9bdcd"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:28:07.408Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.229","versionEndExcluding":"5.4.238"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.163","versionEndExcluding":"5.10.176"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.86","versionEndExcluding":"5.15.104"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.2","versionEndExcluding":"6.1.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.2.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}