# CVE-2026-98129: scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-02)
- Published: 2026-09-25T10:36:09.614Z
- Modified: 2026-10-22T15:10:31.867Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add()

sas_port_alloc_num() can return NULL on memory allocation failure. The
return value is passed directly to sas_port_add() without a NULL check,
which causes a NULL pointer dereference.

Additionally, if sas_port_add() fails, the allocated port is not freed
before jumping to out_fail, leaking the sas_port structure. Call
sas_port_free() to properly release it.

(As written by CVE List.)

## Affected

- Linux Linux: from e22bae30667a7e74ed057e00fb6e8c79e0738de3 before 7e3489b5950e7668355762968a7c7f75fe9bc80d; from e22bae30667a7e74ed057e00fb6e8c79e0738de3 before c848a1bbe110496eff8dcdf7cfbff66a69edae89; from e22bae30667a7e74ed057e00fb6e8c79e0738de3 before 5c50137ba11b6e20e7074303dae35ff58d5a0b6f; from e22bae30667a7e74ed057e00fb6e8c79e0738de3 before 2f69ed909de9e3d46af9db7dd24b9b80dc31b5ec; from e22bae30667a7e74ed057e00fb6e8c79e0738de3 before 5cb58b052cf09dd8e88d92c1d649b3eea5c95d4d; from e22bae30667a7e74ed057e00fb6e8c79e0738de3 before dba9e2181ca5e875f98b8b9b4535cdaab87dcb0d; 6.1 (not affected: before 6.1; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 6.1 before 6.1.189; from 6.2 before 6.6.158; from 6.7 before 6.12.111; from 6.13 before 6.18.53; from 6.19 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/7e3489b5950e7668355762968a7c7f75fe9bc80d> (patch)
- <https://git.kernel.org/stable/c/c848a1bbe110496eff8dcdf7cfbff66a69edae89> (patch)
- <https://git.kernel.org/stable/c/5c50137ba11b6e20e7074303dae35ff58d5a0b6f> (patch)
- <https://git.kernel.org/stable/c/2f69ed909de9e3d46af9db7dd24b9b80dc31b5ec> (patch)
- <https://git.kernel.org/stable/c/5cb58b052cf09dd8e88d92c1d649b3eea5c95d4d> (patch)
- <https://git.kernel.org/stable/c/dba9e2181ca5e875f98b8b9b4535cdaab87dcb0d> (patch)

## Sources

- CVE List: [CVE-2026-98129](https://www.cve.org/CVERecord?id=CVE-2026-98129), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98129](https://nvd.nist.gov/vuln/detail/CVE-2026-98129), Public domain, modified 2026-10-22

---

Page: https://cve.day/CVE-2026-98129 · Whole record: https://cve.day/CVE-2026-98129.json · Rebuilt by cve.day 2026-11-25T22:59:41.072Z
