All reports
Low

kernel: scsi: mpi3mr: Fix target device refcount leak in mpi3mr_sas_port_add()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-98128

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-25

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.

A flaw was found in the Linux kernel's mpi3mr driver. This vulnerability can lead to a Denial of Service (DoS) due to kernel memory exhaustion. When an error occurs during Serial Attached SCSI (SAS) port addition, the driver fails to properly release an acquired reference count on the target device structure, preventing the allocated memory from being freed. A local user capable of triggering this error condition can cause repeated memory leaks, potentially degrading system performance or causing a system crash.