{"id":"CVE-2026-98128","aliases":["CVE-2026-98128"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: mpi3mr: Fix target device refcount leak in mpi3mr_sas_port_add()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-25T10:36:09.014Z","modified":"2026-10-22T15:18:03.967Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"e22bae30667a7e74ed057e00fb6e8c79e0738de3","fixed":"60a9aaac07f6470b252c4de40e7d8a6e25004093","status":"affected"},{"type":"git","introduced":"e22bae30667a7e74ed057e00fb6e8c79e0738de3","fixed":"58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb","status":"affected"},{"type":"git","introduced":"e22bae30667a7e74ed057e00fb6e8c79e0738de3","fixed":"040146f81d099006a354b0caacc7f01ca00f257e","status":"affected"},{"type":"git","introduced":"e22bae30667a7e74ed057e00fb6e8c79e0738de3","fixed":"06a7073b33b8f5cb0ee71e07dc669efffb1c7d58","status":"affected"},{"type":"git","introduced":"e22bae30667a7e74ed057e00fb6e8c79e0738de3","fixed":"1ccbe8c42009706af79e6629c70d42fc929aef2b","status":"affected"},{"type":"git","introduced":"e22bae30667a7e74ed057e00fb6e8c79e0738de3","fixed":"419d129f970aaa6567dbac366b0c93784bf9ec97","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1","fixed":"6.12.111"},{"status":"affected","introduced":"6.13","fixed":"6.18.53"},{"status":"affected","introduced":"6.19","fixed":"7.2.7"},{"status":"affected","version":"7.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/60a9aaac07f6470b252c4de40e7d8a6e25004093","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/58e3d2fbc8c914ed3dce2f7d915b3c4f4a3c76fb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/040146f81d099006a354b0caacc7f01ca00f257e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06a7073b33b8f5cb0ee71e07dc669efffb1c7d58","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ccbe8c42009706af79e6629c70d42fc929aef2b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/419d129f970aaa6567dbac366b0c93784bf9ec97","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98128","url":"https://www.cve.org/CVERecord?id=CVE-2026-98128","licence":"CVE Terms of Use","modified":"2026-10-19T09:14:20.796Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98128","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98128","licence":"Public domain","modified":"2026-10-22T15:18:03.967Z"}],"updatedAt":"2026-11-25T22:59:41.072Z","epss":{"score":0.00123,"percentile":0.02237,"date":"2026-12-01T12:00:22.000Z"}}