Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD72849B5CF for ; Fri, 25 Sep 2026 10:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332957; cv=none; b=ZznuU9On3BMiAmd8l61hkiRYr55uFZxspWixRpyA193PKhgfAZDZtKT0k+cq4qpOzceyuuGjZSRpzpZiiwhRo1W6fpBQn9jBguuwIK+QjGWOeNJwedTjOhPPhJ25GhHnROrpM7pfZYQBwpzbjvctpSo1Yi2R+scdOgl1GRvqYcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332957; c=relaxed/simple; bh=t54QvsdJ2TMqV6lHTTOEt1EfE+tx2i2rs4L3Pd4pUBM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=R7sAXJhUQPVmOejxNYYmw/vssnSvAJeZgRrkuSn8jVgEkWej8EZlJNtGEtDEQMTqMg9JbLYSmaQiGNdSXeQ5UCoKLt0zy5siBH6weHAI42NHOmvc6mfbIjXV5zDewqzVfXMqxQ59C4jooFC2KfwvUaXnwpf6O4X9RujbA9TBCzs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e/6FIfrf; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="e/6FIfrf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 351461F00893; Fri, 25 Sep 2026 10:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332955; bh=RZ5NeR4o0DJBGp3c5xZJ3sRYC2Op+vNGFJEOKDNSH/Q=; h=From:To:Cc:Subject:Date:Reply-To; b=e/6FIfrfsHbOalCUUNuFgKZKEXXkXT/+Fux7FJiD80yeXX6QF7cul38oqVETtJXzr i+Pv4mZf0jsXODDg9Un+gExj0EmMOTnz0mwWDK/ljeATYy0b5YocSgeAy0f+X2E+Xj L4Jqjj+C/bLRfA/6CLBlnelCnFSpymQueLxWmraY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98128: scsi: mpi3mr: Fix target device refcount leak in mpi3mr_sas_port_add() Date: Fri, 25 Sep 2026 12:39:35 +0200 Message-ID: <2026092515-CVE-2026-98128-9967@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2795; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hhmzxoe4o5r7WKrdEoi6F6VbfqWbT9samvduKKhbEMU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnb/IODe7ckXk2VM0iSku40awi/XygbmWq8943uDtWPV ksXzrrXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOpK2OYZ1tXaHFWIklzvmyC ygyeJefiztiIMCzYGHhN8dXC2CzlF28Y1m+zXDVjZs5aAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-98128 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit e22bae30667a7e74ed057e00fb6e8c79e0738de3 and fixed in 6.12.111 with commit 040146f81d099006a354b0caacc7f01ca00f257e Issue introduced in 6.1 with commit e22bae30667a7e74ed057e00fb6e8c79e0738de3 and fixed in 6.18.53 with commit 06a7073b33b8f5cb0ee71e07dc669efffb1c7d58 Issue introduced in 6.1 with commit e22bae30667a7e74ed057e00fb6e8c79e0738de3 and fixed in 7.2.7 with commit 1ccbe8c42009706af79e6629c70d42fc929aef2b Issue introduced in 6.1 with commit e22bae30667a7e74ed057e00fb6e8c79e0738de3 and fixed in 7.3-rc2 with commit 419d129f970aaa6567dbac366b0c93784bf9ec97 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98128 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/scsi/mpi3mr/mpi3mr_transport.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/040146f81d099006a354b0caacc7f01ca00f257e https://git.kernel.org/stable/c/06a7073b33b8f5cb0ee71e07dc669efffb1c7d58 https://git.kernel.org/stable/c/1ccbe8c42009706af79e6629c70d42fc929aef2b https://git.kernel.org/stable/c/419d129f970aaa6567dbac366b0c93784bf9ec97