{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e22bae30667a7e74ed057e00fb6e8c79e0738de3"
            },
            {
              "fixed": "040146f81d099006a354b0caacc7f01ca00f257e"
            },
            {
              "fixed": "06a7073b33b8f5cb0ee71e07dc669efffb1c7d58"
            },
            {
              "fixed": "1ccbe8c42009706af79e6629c70d42fc929aef2b"
            },
            {
              "fixed": "419d129f970aaa6567dbac366b0c93784bf9ec97"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.1.0"
            },
            {
              "fixed": "6.12.111"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.53"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.2.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98128.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: mpi3mr: Fix target device refcount leak in mpi3mr_sas_port_add()\n\nmpi3mr_get_tgtdev_by_addr() increments the target device kref when it\nreturns a device. If a subsequent error triggers a goto out_fail after\nthe tgtdev reference is acquired, the reference is never released\nbecause the out_fail path does not call mpi3mr_tgtdev_put(). This\nprevents the target device structure from ever being freed.\n\nAdd a tgtdev put in the out_fail path, guarded by a NULL check since\ntgtdev is only acquired for SAS_END_DEVICE types and the same cleanup\npath is shared by earlier error cases where tgtdev is still NULL.",
  "id": "CVE-2026-98128",
  "modified": "2026-09-27T03:30:49.118724262Z",
  "published": "2026-09-25T10:36:09.014Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/040146f81d099006a354b0caacc7f01ca00f257e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/06a7073b33b8f5cb0ee71e07dc669efffb1c7d58"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1ccbe8c42009706af79e6629c70d42fc929aef2b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/419d129f970aaa6567dbac366b0c93784bf9ec97"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98128.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98128"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "scsi: mpi3mr: Fix target device refcount leak in mpi3mr_sas_port_add()"
}