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 E26434FE2FA for ; Thu, 17 Sep 2026 16:30:18 +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=1789662620; cv=none; b=RuDqqvhVyeSRJuNEIIxcdUG2IeyQ8vgj7YkOKYEOG8aWqs8Rj/26JQddKEKCT919/3xnNWDrBEpmb6vxTlOPx+Vi3Wc3SPXBNEJanhwpclWIzpVwUfzgC2Ov+wpWbzb+DZMMRCrr0FAkJzbjabXgUXVAcUX/1/6m1W8N7Hvx/QI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662620; c=relaxed/simple; bh=fB9nmGGrf2zDz/oZuLhnfO6EdYYAZLrFv6tYAup0r+M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hawwp4aWYUdVL5JUL5edAXaJbrXbZCZvKxgyDjloIglqvJnvKaxFd9bj/Cf1XRLswiINsGCdh+mXYdbEu03SpBPSxFlYyJBTuRSfaqUKsaftyvTRv9fFS+yYuQMV7rzNaclLST41iKAtFf9CyeoFxznzl93tr36YPxuEnfeV5xc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v/UR/esg; 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="v/UR/esg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DF051F000FF; Thu, 17 Sep 2026 16:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662618; bh=PJ5ri5qWU3nmpdp/b+5/Hww1Lnli647gPCILcJG1pRg=; h=From:To:Cc:Subject:Date:Reply-To; b=v/UR/esgTXvN/rkvzc9hwY/n55vlZYqKbVEazNPbb+NB5b92KcYk7fvLATW1W+uuJ 3siCrF9KmlV3JmJYinYLHkAdJc58najH8tqTK1y0u9yXSqSczudj7enHNoiJ3+IkQZ yNip8cYtS9mTZQMivR5/mpsL6yXwhzmwn0kOoSVg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90415: RDMA/cxgb4: free STAG index when TPT entry write fails Date: Thu, 17 Sep 2026 17:14:05 +0100 Message-ID: <2026091717-CVE-2026-90415-370a@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=3796; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OIvY5Jm6LrynpPqcD++fJ8ybG5XANXINDth7eOQruEA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBNZuuTH1RuHnqojM66bbeTjc5j+0UasLmZfNP8+Gz dju6ES/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI6B6GearWfNsa6qUY/5d+ kfeaeGlPjw+/NcP8ypnr4l7xK1+3/yXh5jAv7X+RYPZDAA== 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: RDMA/cxgb4: free STAG index when TPT entry write fails write_tpt_entry() allocates a new STAG index with c4iw_get_resource() and bumps stats.stag.cur before programming the entry. When write_adapter_mem() fails, it returns the error without releasing the index or reversing the statistic. No MR is inserted into rhp->mrs, so deregistration never reclaims it, leaking the index until device teardown. Record whether this call allocated the index and, on a failed write, return it to tpt_table and decrement stats.stag.cur. Key the rollback on both the write error and that flag, not the error alone: a non-reset update carries a caller-owned STAG that this call did not allocate and must not free. The Linux kernel CVE team has assigned CVE-2026-90415 to this issue. Affected and fixed versions =========================== Issue introduced in 3.5 with commit ec3eead217181d7360a11317a888ceb30807867c and fixed in 5.10.270 with commit 5fe4731bfbd8d83c4a14b4af3a27329969ce8a99 Issue introduced in 3.5 with commit ec3eead217181d7360a11317a888ceb30807867c and fixed in 5.15.221 with commit 8f6976d635d190e3d7af7103daaa581cf1ccc12e Issue introduced in 3.5 with commit ec3eead217181d7360a11317a888ceb30807867c and fixed in 6.1.188 with commit 9eeafcda1d6c11f0eec532243c4e96ec8c632bd7 Issue introduced in 3.5 with commit ec3eead217181d7360a11317a888ceb30807867c and fixed in 6.6.157 with commit 5a21e5114cec4cd3f8a2843d4c46bc49634d6e96 Issue introduced in 3.5 with commit ec3eead217181d7360a11317a888ceb30807867c and fixed in 6.12.110 with commit 2f17ca7ab5269ac2504e1039c3921373dccd7712 Issue introduced in 3.5 with commit ec3eead217181d7360a11317a888ceb30807867c and fixed in 6.18.52 with commit a2e37d1ab773be3cd26b1c19593ca2dbcece9c57 Issue introduced in 3.5 with commit ec3eead217181d7360a11317a888ceb30807867c and fixed in 7.2.6 with commit a64e2beb450179a5d43034af8d5476a11eac1486 Issue introduced in 3.5 with commit ec3eead217181d7360a11317a888ceb30807867c and fixed in 7.3-rc1 with commit fdfb5cea4bf070cdb31d997efd87bb684df041fd 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-90415 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/cxgb4/mem.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/5fe4731bfbd8d83c4a14b4af3a27329969ce8a99 https://git.kernel.org/stable/c/8f6976d635d190e3d7af7103daaa581cf1ccc12e https://git.kernel.org/stable/c/9eeafcda1d6c11f0eec532243c4e96ec8c632bd7 https://git.kernel.org/stable/c/5a21e5114cec4cd3f8a2843d4c46bc49634d6e96 https://git.kernel.org/stable/c/2f17ca7ab5269ac2504e1039c3921373dccd7712 https://git.kernel.org/stable/c/a2e37d1ab773be3cd26b1c19593ca2dbcece9c57 https://git.kernel.org/stable/c/a64e2beb450179a5d43034af8d5476a11eac1486 https://git.kernel.org/stable/c/fdfb5cea4bf070cdb31d997efd87bb684df041fd