From mboxrd@z Thu Jan 1 00:00:00 1970 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 6D2423C1085 for ; Tue, 6 Oct 2026 08:48:15 +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=1791276496; cv=none; b=lqMJD1WaJsV4eduZ8vzgQ4Oni7fmKDkQNrMbaqBnYTi7epKfHb4SVMRFl1PdsBq2jPs1kJyJ02Jdwed1gdYO9ZkhU8bzYltN3TpqzJ6BTzKaCkQExGIV5Q6evDm7amuBmgVnXmx31Fbwvzgns50Fq/bgV9jQZ0TQYyyCL4sn8GM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276496; c=relaxed/simple; bh=H3M02zlsk/q3Hg60fhUczDLJAxSlOSNbj0zUmIjblOc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WxrA7nx0ETgfjYwKbMr+ry3k5SKErfdZQu2ezrNdLgfmr7RfuIVKnoj4bNrfEFBVZvvDhXTaKNWQDf3hPVYvPBkSPqFgXu4jKcu3nIoVsurtZnuwF2hfHeSZ1zpenUk2b3xUsxv3GERGq+VUcnuARvhZ01O21N6caOh0CQ2s7g8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OwIKR0dF; 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="OwIKR0dF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E6F81F000FF; Tue, 6 Oct 2026 08:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276494; bh=+TVuCGvE9696QL9C2xZals0HSsnsKu8S+B3lOwJd75g=; h=From:To:Cc:Subject:Date:Reply-To; b=OwIKR0dFbTkoBsCtSmxGFR1Rz5TZgiELPTqENENpAR1w2ItWsSsdvh5MNrLqykwq5 eKPlkSzi9qsi74y6/irFxC6p/vxU87fwAjF9krPAXfu1NvTEr2LECifhlHNyjboxnR Vq5PTnHPB49gAqzFYwJuKoaY0telbJ7aicVbZRN4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98217: IB/mlx4: Fix use-after-free on pkey sysfs registration failure Date: Tue, 6 Oct 2026 10:45:18 +0200 Message-ID: <2026100641-CVE-2026-98217-520d@gregkh> X-Mailer: git-send-email 2.56.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=3726; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DVDfhJoqrpJG7I22a/Nqwabcvz4l5RAnMHN1VijBTSE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtvycrHXKOvCXfcX24MM2cQlbOX8qH9m9cmLNc9NXR jE9W77d6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJWCUwzE+/6m22RI2ly9Hc Xz/1v0pJVtYhU4b5+eZfnysKWa6w236qnzeVSeAgo9gbAA== 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: IB/mlx4: Fix use-after-free on pkey sysfs registration failure register_pkey_tree() ignores errors from register_one_pkey_tree() and continues registering the remaining slaves. The per-slave error path has already released the pkey parent kobjects, but their pointers remain stored in the device. A later device cleanup therefore passes the stale pointers to kobject_put(), causing a use-after-free. Clear the parent pointers after releasing a failed slave tree and skip unregistered trees during device cleanup. This preserves the existing best-effort registration behavior while preventing a second cleanup of the failed tree. The Linux kernel CVE team has assigned CVE-2026-98217 to this issue. Affected and fixed versions =========================== Issue introduced in 3.7 with commit c1e7e466120b80ce49e91af0c9da1ce6dee4844a and fixed in 5.10.271 with commit 791471421d848ce13e84f4b21c9e19973d471c4e Issue introduced in 3.7 with commit c1e7e466120b80ce49e91af0c9da1ce6dee4844a and fixed in 5.15.222 with commit 734f066933484f6c7cedea0312763249beed5845 Issue introduced in 3.7 with commit c1e7e466120b80ce49e91af0c9da1ce6dee4844a and fixed in 6.1.189 with commit a07bee32127d7c4cd3b1bb9a088e21d0c93634c9 Issue introduced in 3.7 with commit c1e7e466120b80ce49e91af0c9da1ce6dee4844a and fixed in 6.6.158 with commit cf20d7476754c00eec04ae23d3e929de33ce0345 Issue introduced in 3.7 with commit c1e7e466120b80ce49e91af0c9da1ce6dee4844a and fixed in 6.12.112 with commit 0c3482e965b18bc242e54e899d1c4d391ca8e5e3 Issue introduced in 3.7 with commit c1e7e466120b80ce49e91af0c9da1ce6dee4844a and fixed in 6.18.54 with commit ffb80872617b5f9b3dd1536ec2909029fa66f228 Issue introduced in 3.7 with commit c1e7e466120b80ce49e91af0c9da1ce6dee4844a and fixed in 7.2.8 with commit ced1186fea7c77e16681c7ef4802897885989c3b Issue introduced in 3.7 with commit c1e7e466120b80ce49e91af0c9da1ce6dee4844a and fixed in 7.3-rc4 with commit 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a 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-98217 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/infiniband/hw/mlx4/sysfs.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/791471421d848ce13e84f4b21c9e19973d471c4e https://git.kernel.org/stable/c/734f066933484f6c7cedea0312763249beed5845 https://git.kernel.org/stable/c/a07bee32127d7c4cd3b1bb9a088e21d0c93634c9 https://git.kernel.org/stable/c/cf20d7476754c00eec04ae23d3e929de33ce0345 https://git.kernel.org/stable/c/0c3482e965b18bc242e54e899d1c4d391ca8e5e3 https://git.kernel.org/stable/c/ffb80872617b5f9b3dd1536ec2909029fa66f228 https://git.kernel.org/stable/c/ced1186fea7c77e16681c7ef4802897885989c3b https://git.kernel.org/stable/c/1af874e9f4ce22ccf8b10ab5462f32c70d3be21a