---
id: CVE-2026-98128
title: |-
  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
summary: |-
  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 sub…
severity: medium
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= e22bae30667a7e74ed057e00fb6e8c79e0738de3 <
    60a9aaac07f6470b252c4de40e7d8a6e25004093
  - >-
    Linux >= e22bae30667a7e74ed057e00fb6e8c79e0738de3 <
    58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb
  - >-
    Linux >= e22bae30667a7e74ed057e00fb6e8c79e0738de3 <
    040146f81d099006a354b0caacc7f01ca00f257e
  - >-
    Linux >= e22bae30667a7e74ed057e00fb6e8c79e0738de3 <
    06a7073b33b8f5cb0ee71e07dc669efffb1c7d58
  - >-
    Linux >= e22bae30667a7e74ed057e00fb6e8c79e0738de3 <
    1ccbe8c42009706af79e6629c70d42fc929aef2b
  - >-
    Linux >= e22bae30667a7e74ed057e00fb6e8c79e0738de3 <
    419d129f970aaa6567dbac366b0c93784bf9ec97
  - Linux 6.1
published: '2026-09-25'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T11:18:34.417'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98128'
references:
  - url: 'https://git.kernel.org/stable/c/040146f81d099006a354b0caacc7f01ca00f257e'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/06a7073b33b8f5cb0ee71e07dc669efffb1c7d58'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1ccbe8c42009706af79e6629c70d42fc929aef2b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/419d129f970aaa6567dbac366b0c93784bf9ec97'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/60a9aaac07f6470b252c4de40e7d8a6e25004093'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98128.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-98128'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2541376'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-98128'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98128'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-98128.mbox
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00123
epssPercentile: 0.02054
ingestedAt: '2026-09-25T11:06:38.818Z'
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe:
  - CWE-911
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98128.json)
