Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100519; b=ISnw3dR+zFOtN2SYegtMqxpHAT0acR1VGaKoGVPm8TFYQSwNw6uPUtltJD8Gr6J1CdTe M4xcd1bTCDudLRjsPxI6bWA1UqLgRykHv0ape/D54HSpQmDYcCUZ95wIsiSvVVQuBP+zg BwxdTV/LOqKPAjxsuJCUiGhYn4BqZe40nhFwXtgGoTywzMiGxjQKm20TCTLN68MeznA/a xX1RgLXNXrl1IjUv2VP+dyv/5Y98VwMDclslD3mXXBzhSTPxOPGCfICMtIP8NdmFsiKaN FSQSGxXos3W84sMg3w57aq88XEvhxNAgU3ur6Jh5A7pSS2v9YHdwZocuN9nIO9+KfVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100519; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=bwPpYeCSl++KXfz2CE0fm31aEj2TdYC0EC222UJUBu8=; b=MATE/2dfZ+h10Kt40yPNhXKWtCFj/KYMIxSwqxnQ+52/QGmMnpcEGLHKxkwNZG0sekCv 689o9LXEf6rn15ypAGpaq6uwqqDQ6wMd3dDPliaILn7KRFZ/WG/vpxRoQIJSC2KYeLTcE f/OymfxWs/nVTVU1CF8IkklrGcOuzKrc7mNfePKLFevBRbVosAKVcSHb/bEFd6zm1bcWz em3LbkjYNsN5TWHkuiimdltPuoucBR7JbRqOldv1v8OruThBmwS5N4ZWmpuiIfsJSCCls brb1J9CRnw4WMQN28l5XqCDEvGl2XRJE9kPDGfYMETgbhB3CqbqlcxYHK0J9FDlBirw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="Hh5g/VJR"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5006606A32C for ; Thu, 19 Nov 2026 15:01:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Hh5g/VJR Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCAC91F000C5; Thu, 19 Nov 2026 15:01:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100519; bh=bwPpYeCSl++KXfz2CE0fm31aEj2TdYC0EC222UJUBu8=; h=From:To:Cc:Subject:Date:Reply-To; b=Hh5g/VJRialD3Rv/VcIeIsng6ah1G0QJ7DV89Enq5IXHwpXeMF7VtRYaB7qq+6iXo LhHs7Zx/zUClQG+OjaZt+z8spsdY9MiGyPegVnltvbeCt8w1eauzQe5DRHBV3D5Mwz fZ76dGqMP7axxK2N6nzH5XMcKS6fjTCqlBC2eHWs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99522: RDMA/irdma: avoid use-after-free in icrdma_remove Date: Thu, 19 Nov 2026 15:27:00 +0100 Message-ID: <2026111920-CVE-2026-99522-89d3@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3195; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=74gwCLek1jumgbM6HJ4Hgh1V7gNLzjBTIKrmmtQQFrg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aYUs9bG9yYFzM9SPcDlwP5dUvVz01bv4LjcGbbGC /Zk+T7uiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInMOs4wP7lByOHFhYkz1s9L vcsy4+h0g+ffPzIsOJDL+OSxzj9Rtn/7DkZG8Fd5P1RlBwA= 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/irdma: avoid use-after-free in icrdma_remove icrdma_remove() dereferences iwdev after calling irdma_ib_unregister_device(): irdma_ib_unregister_device(iwdev) -> ib_unregister_device(&iwdev->ibdev) -> __ib_unregister_device() -> ib_dealloc_device() irdma registers irdma_ib_dealloc_device() as the dealloc_driver callback in its ib_device_ops. The RDMA core explicitly documents ib_unregister_device() that when ops.dealloc_driver is used, ib_dev will be freed upon return from the function. The ib_device is embedded in struct irdma_device and iwdev itself was allocated by ib_alloc_device(irdma_device, ibdev). Consequently, once irdma_ib_unregister_device() returns, iwdev must no longer be dereferenced. However, icrdma_remove() currently accesses iwdev->rf afterwards when deinitializing interrupts, destroying ah_tbl_lock, and freeing rf. Although the final ib_device storage is released with kfree_rcu(), the object lifetime has already ended and callers must not rely on the RCU grace period to continue dereferencing iwdev. Save iwdev->rf before unregistering the RDMA device and use the saved pointer for the remaining cleanup. This issue was found by manual code inspection. The Linux kernel CVE team has assigned CVE-2026-99522 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 8498a30e1b9484629598cce97d200f517445e26b and fixed in 6.18.61 with commit e5388f15d595dd4d7599a43e9cb58c0656a6aec6 Issue introduced in 5.14 with commit 8498a30e1b9484629598cce97d200f517445e26b and fixed in 7.3.2 with commit 47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6 Issue introduced in 5.14 with commit 8498a30e1b9484629598cce97d200f517445e26b and fixed in 7.4-rc1 with commit 8a8088b899e4cdfe558428cd6113d45df81625be 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-99522 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/irdma/icrdma_if.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/e5388f15d595dd4d7599a43e9cb58c0656a6aec6 https://git.kernel.org/stable/c/47eb0ec18f7bbd40cf1f1d261f15ef3c03e4c8d6 https://git.kernel.org/stable/c/8a8088b899e4cdfe558428cd6113d45df81625be