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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2026-09-25T10:36:09.014Z
- **Modified:** 2026-10-22T15:18:03.967Z

## Who should check

- Anyone running Linux \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 60a9aaac07f6470b252c4de40e7d8a6e25004093; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 040146f81d099006a354b0caacc7f01ca00f257e; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 06a7073b33b8f5cb0ee71e07dc669efffb1c7d58; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 1ccbe8c42009706af79e6629c70d42fc929aef2b; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 419d129f970aaa6567dbac366b0c93784bf9ec97
- Anyone running Linux 6.1

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

## Affected and fixed versions

- Linux: \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 60a9aaac07f6470b252c4de40e7d8a6e25004093; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 040146f81d099006a354b0caacc7f01ca00f257e; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 06a7073b33b8f5cb0ee71e07dc669efffb1c7d58; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 1ccbe8c42009706af79e6629c70d42fc929aef2b; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 419d129f970aaa6567dbac366b0c93784bf9ec97 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 419d129f970aaa6567dbac366b0c93784bf9ec97 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98128. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98128.md
Affected: Linux >= e22bae30667a7e74ed057e00fb6e8c79e0738de3, < 60a9aaac07f6470b252c4de40e7d8a6e25004093; >= e22bae30667a7e74ed057e00fb6e8c79e0738de3, < 58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb; >= e22bae30667a7e74ed057e00fb6e8c79e0738de3, < 040146f81d099006a354b0caacc7f01ca00f257e; >= e22bae30667a7e74ed057e0…
Fixed in: Linux 60a9aaac07f6470b252c4de40e7d8a6e25004093, Linux 58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb, Linux 040146f81d099006a354b0caacc7f01ca00f257e, Linux 06a7073b33b8f5cb0ee71e07dc669efffb1c7d58, Linux 1ccbe8c42009706af79e6629c70d42fc929aef2b, Linux 419d129f970aaa6567dbac366b0c93784bf9ec97

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98128 being exploited?

There is no confirmed exploitation: CVE-2026-98128 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98128?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-98128?

Linux \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 60a9aaac07f6470b252c4de40e7d8a6e25004093; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 040146f81d099006a354b0caacc7f01ca00f257e; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 06a7073b33b8f5cb0ee71e07dc669efffb1c7d58; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 1ccbe8c42009706af79e6629c70d42fc929aef2b; \>= e22bae30667a7e74ed057e00fb6e8c79e0738de3, \< 419d129f970aaa6567dbac366b0c93784bf9ec97; Linux 6.1.

### Is there a fix for CVE-2026-98128?

Yes. Fixed in Linux 60a9aaac07f6470b252c4de40e7d8a6e25004093, Linux 58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb, Linux 040146f81d099006a354b0caacc7f01ca00f257e, Linux 06a7073b33b8f5cb0ee71e07dc669efffb1c7d58, Linux 1ccbe8c42009706af79e6629c70d42fc929aef2b, Linux 419d129f970aaa6567dbac366b0c93784bf9ec97. Upgrade Linux to 419d129f970aaa6567dbac366b0c93784bf9ec97 or later.

### How do I check if I'm affected by CVE-2026-98128?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/60a9aaac07f6470b252c4de40e7d8a6e25004093>
- patch: <https://git.kernel.org/stable/c/58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb>
- patch: <https://git.kernel.org/stable/c/040146f81d099006a354b0caacc7f01ca00f257e>
- patch: <https://git.kernel.org/stable/c/06a7073b33b8f5cb0ee71e07dc669efffb1c7d58>
- patch: <https://git.kernel.org/stable/c/1ccbe8c42009706af79e6629c70d42fc929aef2b>
- patch: <https://git.kernel.org/stable/c/419d129f970aaa6567dbac366b0c93784bf9ec97>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98128>

HTML: <https://flawdb.com/CVE-2026-98128> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98128>
