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 DC64E4EBAC5 for ; Wed, 16 Sep 2026 10:34:43 +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=1789554923; cv=none; b=BvM+bVP3VZPwzXVeRn9cvkAI62Hsrpc4rk9C2HErQjfuGuxtJS10gfO31Tjf1crpdOAOx++8c+qSzBk6za0oOZV77MgkP8sTCkIWKfrN9AGMkrs3cNclY8M3u6IzrkS/TXInVBAA3KY534m7+1hHpgIeHEyxz9PyQSHhqH1ot0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554923; c=relaxed/simple; bh=KXaEzMOSwGAqSUh3q70pCLsZ6U7o0ov3UCTPQ/+ZUIA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n0TyX/t+D+WadBafTekc94mctIk2XmrpHAjKKc36nNteZ679PtDBAncJpPf3deSBFOLILfhgtTXXZUN/iFHn47brAhL92gAEpZxaE0gLBSp7sv7mKhhcYknXaVlcso9zy2WnOobH2Fha/anC6mgJWLw7Q1pkq3ZdxxEdBIHoZI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p1O+Lz/5; 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="p1O+Lz/5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 691CA1F000FF; Wed, 16 Sep 2026 10:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554881; bh=7vyDa0BcPoqAeN/b5ZE4SlhtqGosf5QDh+ooQMDWeSE=; h=From:To:Cc:Subject:Date:Reply-To; b=p1O+Lz/5VujYb9Gs7RIN0KcSTyp5IpW4y2zRGlbzDVkAhNdshxNlAIJNSHmsDsmaq 75Kc3wzwrQYQ+Hu74kOMBy1+Yqb6XvVToSJ3Sd10OArNvm2ywDIkVfel2i/o/d2hvC E0V+m/s/oQXYpxOYvF7kk5i0B1Mmp+z5ZpbqGVXk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89798: rpcrdma: arm rn_done before publishing the notification Date: Wed, 16 Sep 2026 11:28:48 +0100 Message-ID: <2026091649-CVE-2026-89798-44a9@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=3042; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9YJNf+K0tar5fE1A1CyqwavQXOlJ72LYWXzi+UUH/s4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8pMmvvzMGN9+tGi1qJD/3onu0vxbn22x8bjzq3Pm2 3YhlbnlHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR/u8M8ys/hG87lxCcGJvG IpN8asb3VyEHmhnmO4ran7oXMffvvrwfTdvdc2Pvxx92BgA= 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: rpcrdma: arm rn_done before publishing the notification rpcrdma_rn_register() inserts @rn into rd_xa with xa_alloc() before storing the caller's callback in rn->rn_done. The xarray makes @rn reachable to rpcrdma_remove_one(), which walks rd_xa and invokes rn->rn_done(rn) for every registered notification. A device removal that races a fresh registration can therefore observe @rn with rn_done still NULL, because the notification objects are zero allocated by their owners, and call through a NULL function pointer. Store rn->rn_done before xa_alloc() publishes @rn. The xarray's store-side and load-side ordering then guarantees that any CPU which finds @rn in rd_xa also observes the armed callback. rpcrdma_rn_unregister() treats a non-NULL rn_done as the sentinel for a completed registration, so the early store must not survive a failed registration. Clear rn_done again when xa_alloc() fails. Were it left set, the failed-accept cleanup path would call rpcrdma_rn_unregister() on an @rn that was never inserted, erasing an unrelated rd_xa slot and underflowing rd_kref. The Linux kernel CVE team has assigned CVE-2026-89798 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 7e86845a0346efc95fddaa97ce5cd6a8bda8c71c and fixed in 6.18.51 with commit 3c97b8e76ca2bba9e8770571413aed694068e78e Issue introduced in 6.11 with commit 7e86845a0346efc95fddaa97ce5cd6a8bda8c71c and fixed in 7.2.5 with commit ea0408273ccf5df1fb52d9a1b9db4d31600dcb36 Issue introduced in 6.11 with commit 7e86845a0346efc95fddaa97ce5cd6a8bda8c71c and fixed in 7.3-rc1 with commit 5b06f706374c37375bdff9d21cc10e61df925a92 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-89798 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: net/sunrpc/xprtrdma/ib_client.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/3c97b8e76ca2bba9e8770571413aed694068e78e https://git.kernel.org/stable/c/ea0408273ccf5df1fb52d9a1b9db4d31600dcb36 https://git.kernel.org/stable/c/5b06f706374c37375bdff9d21cc10e61df925a92