Refcount Leak in Linux Kernel's Target Device Handling
CVE-2026-98128
What is CVE-2026-98128?
In the Linux kernel, a refcount leak was identified in the mpi3mr module specifically related to the handling of target devices. When the function mpi3mr_get_tgtdev_by_addr() acquires a reference to a device, it fails to release it in the event of an error that triggers the out_fail path, leading to a potential memory leak. The fix involves adding a reference drop for the target device in the cleanup path, ensuring that the reference is properly released, thereby preventing the target device structure from remaining allocated indefinitely. This vulnerability impacts the handling of SAS_END_DEVICE types, emphasizing the importance of robust memory management practices in kernel development.
Affected Version(s)
Linux e22bae30667a7e74ed057e00fb6e8c79e0738de3 < 040146f81d099006a354b0caacc7f01ca00f257e
Linux e22bae30667a7e74ed057e00fb6e8c79e0738de3 < 06a7073b33b8f5cb0ee71e07dc669efffb1c7d58
Linux e22bae30667a7e74ed057e00fb6e8c79e0738de3 < 1ccbe8c42009706af79e6629c70d42fc929aef2b