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 7D9D537CD3E for ; Sat, 15 Aug 2026 06:29:48 +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=1786775389; cv=none; b=FRqR/DFYvkZ8q1fX+a9MvX5y6IXpnN7A8ag3DnQ3m8qvp0bGx0KJkTM5CxvzUX2g44hrJNHTKSkOLR1l/z+Nv7f1Tjw2KwGkhXRssA7Dp05BL6f2fPGMBeBU27XpVX45j7b9R1YZ9/BGXfvVfd9IxNT5Xxr+eeSTJGdQAfJE9bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775389; c=relaxed/simple; bh=zydYwHigQUOUvXyuQwcH5GKCy1yYbEi0lRaTSQJ1wDQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QJ3AvmVFAre3UGUvQ3MzaPDXhmLxyCZhHvmOOxvXZsFP7Z8F9mC72EM4qGZ7CAxFYW3uxXOMdlF/xM/OKIx02RcNa1bVXDdUrts5qMdy+ZXxicTHPOYrZa0tUnZyBUQZvhOlXeiuHvMCFE+PsHO/ph18D119cyjl64hDYMXkXIo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bBzgT9uy; 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="bBzgT9uy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA1771F000E9; Sat, 15 Aug 2026 06:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775388; bh=yC4Mq3aMXPXq1uUCvtant8aDNd1XL2lwVLYc5chm93k=; h=From:To:Cc:Subject:Date:Reply-To; b=bBzgT9uyzTiQBKFvSvQff90nZR9Co6qcV8ytLn40r7DGaoYkTnTFVL54MpbgZ4qtO +AAV57yQwMYLlheDUjyEH9yuFXTZ4kCNMFT8n1i7tJSDAH9A2rpsLv8alshpsSeONY 0LxEGlTwvK5/XuE0CBOaNgpSYSrQuvb8+/yFCvyU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72469: xprtrdma: Fix ep kref imbalance on ADDR_CHANGE Date: Sat, 15 Aug 2026 15:09:08 +0900 Message-ID: <2026081534-CVE-2026-72469-f199@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=3909; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1AkTKw98CW8BXvJlR7K1fYbHEUo0EP3AJ4YZNOlBCC4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDL88705nnp+U8GoWVwH7jFyvNUJG+v8+Psqa9mOmg FHT/qPJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRGfcY5mc7vbNR6jixJO/s 2pCCXGfxw2uOOjPML7zHuEZX7WPgz9qUHd8ffzx6bsOKJQA= 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: xprtrdma: Fix ep kref imbalance on ADDR_CHANGE rpcrdma_cm_event_handler() falls through to the disconnected: label on RDMA_CM_EVENT_ADDR_CHANGE and calls rpcrdma_ep_put() with no matching get when the event arrives before RDMA_CM_EVENT_ESTABLISHED. The kref then underflows during connect teardown and rpcrdma_xprt_disconnect() operates on a freed ep. Reference counts across a normal connection lifecycle: rpcrdma_ep_create() kref_init ->1 rpcrdma_xprt_connect() ep_get ->2 (before post_recvs) RDMA_CM_EVENT_ESTABLISHED ep_get ->3 RDMA_CM_EVENT_DISCONNECTED ep_put ->2 rpcrdma_xprt_drain() ep_put ->1 rpcrdma_xprt_disconnect() tail ep_put ->0 (ep_destroy) The connect-time get in rpcrdma_xprt_connect(), taken just before rpcrdma_post_recvs() "while there are outstanding Receives," is balanced by rpcrdma_xprt_drain. ADDR_CHANGE before ESTABLISHED has no get to consume, so its put drops the count to 1 and the drain put then frees the ep while rpcrdma_xprt_disconnect() still holds a pointer to it. Fix by dispatching on the prior re_connect_status via xchg(): for prev == 0 (pre-ESTABLISHED) wake the connect waiter and return with no put; for prev == 1 call rpcrdma_force_disconnect() and return. The case-1 arm relies on the subsequent RDMA_CM_EVENT_DISCONNECTED event -- reliably delivered when rdma_disconnect() is called on a still-connected cm_id -- to balance the ESTABLISHED get; rpcrdma_xprt_drain() continues to balance only that connect-time get. Any other prior value means teardown is already in flight. The Linux kernel CVE team has assigned CVE-2026-72469 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 2acc5cae292355f5f18ad377a2a966e7f03c8fec and fixed in 6.12.97 with commit cfd1bab66b042da7a778786685125656c695931b Issue introduced in 5.8 with commit 2acc5cae292355f5f18ad377a2a966e7f03c8fec and fixed in 6.18.40 with commit d0479c2b12974aa188b10d221a5770126b118b6d Issue introduced in 5.8 with commit 2acc5cae292355f5f18ad377a2a966e7f03c8fec and fixed in 7.1.5 with commit ffc07790539736a5d029f6a3c966b46c529f93a8 Issue introduced in 5.8 with commit 2acc5cae292355f5f18ad377a2a966e7f03c8fec and fixed in 7.2-rc1 with commit af9b65b29af341932625c4283dc7a23cdb62688a Issue introduced in 5.7.9 with commit 2fcbf07a4f23174a45e015b62a8e42ddbc2e53ef 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-72469 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/verbs.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/cfd1bab66b042da7a778786685125656c695931b https://git.kernel.org/stable/c/d0479c2b12974aa188b10d221a5770126b118b6d https://git.kernel.org/stable/c/ffc07790539736a5d029f6a3c966b46c529f93a8 https://git.kernel.org/stable/c/af9b65b29af341932625c4283dc7a23cdb62688a