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 9C7173E5A09 for ; Tue, 6 Oct 2026 10:29:54 +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=1791282596; cv=none; b=KQb1H2q1pLzFIbhEdRrfySWRnMgBRIEwVARj7mRx5m2epYMonhUbIW6OgiYIVVVzBUiLaUZSt4rhf20CxsbZ+8xGH+8qPZH13ZrtJRFlDLAWMXxHdUKe+2ZWWpDgfgK+qNHw09XtFDlPji3TdQaTfPGkmtBN/0Vf3PsXplXdfMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282596; c=relaxed/simple; bh=LNBHnI/g7T6Y2rw4+bqIra7pl+pvcodXm46UoKqfI+s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=phHdojS66FOflZLXWgsfYIBRcr0stNgc1SJNOl+jP8xfhHJIBh/C3c7tNss5tsABAMNkaZBoRu+XBTwr1/RcfS+/9cZYGFyech/zxVezCAwQVm2hipnfwa+GOKtbmjMQRfwA/XFf7LXq8mffxzOCw5ZTBKiEvqVmp+HoEqSV+7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zS10ixDR; 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="zS10ixDR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B9261F0089A; Tue, 6 Oct 2026 10:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282594; bh=P/OZUasAOejHkQ/p7u+hwH2mlpUIKSvzknbmb6wwOIc=; h=From:To:Cc:Subject:Date:Reply-To; b=zS10ixDR2hV7FJUPrsXOLBZSbOfWa+cD5+pcDu7yDbf1lu94kfscxnx0pEfI7p/DL qnkm/WlPS7DsbiLf49wSZwi9YU8KbvLls99WyCpujR8EgOvKaNe4KF1sIOtVfd7R07 +pgac5OedGzDFN/jWEhbQDcyIgF0r3p0k+EF2hU8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98359: RDMA/core: Reject unregistering netdevs in ib_get_eth_speed Date: Tue, 6 Oct 2026 10:47:40 +0200 Message-ID: <2026100621-CVE-2026-98359-7465@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=3702; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wUBpQwu3o0v3hbZvadofodyDh40EkvZG9dZitb6zbBw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtirW3ZjIfv52Q/6vLbomUzxPmbX5nOT1qfObb7H84 82EjFX7OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiNoYM88vcXE4u+e7/P3HJ S5GW1RkJUi73lRnmykq7BH1d9p3vyddPPq+/XbHhlH3JBgA= 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/core: Reject unregistering netdevs in ib_get_eth_speed ib_device_get_netdev() intentionally returns a referenced net_device even when it is unregistering, so matching and cleanup callers can still find the association. The reference keeps struct net_device allocated, but does not guarantee that the device remains operational. ib_get_eth_speed() uses the returned device operationally by invoking its ethtool callback. Although that call is made under RTNL, the function does not verify the registration state first. An asynchronous RDMA port query can therefore call into a netdev after NETDEV_UNREGISTER and ndo_uninit have completed. Check for NETREG_REGISTERED while holding RTNL and return -ENODEV for a device which is being unregistered. Keeping RTNL across the check and the ethtool operation prevents unregister from starting between them. Keep the speed fallback and warning under RTNL as well, so the warning can safely read netdev->name. Drop the netdev reference before releasing RTNL once all accesses to the device are complete. The Linux kernel CVE team has assigned CVE-2026-98359 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit d41861942fc55c14b6280d9568a0d0112037f065 and fixed in 6.1.189 with commit be4b44c8b47c67a04c08b1a0aba18006b749ae6a Issue introduced in 4.14 with commit d41861942fc55c14b6280d9568a0d0112037f065 and fixed in 6.6.158 with commit 45c60ffc79771bad154f224a05753191cf1b37bc Issue introduced in 4.14 with commit d41861942fc55c14b6280d9568a0d0112037f065 and fixed in 6.12.112 with commit 520cd057f138ed8dbe8e05f0eae3a8ed4c5d3a5e Issue introduced in 4.14 with commit d41861942fc55c14b6280d9568a0d0112037f065 and fixed in 6.18.54 with commit a219459fbd1b2598e63c81a52847eba6c28b72d2 Issue introduced in 4.14 with commit d41861942fc55c14b6280d9568a0d0112037f065 and fixed in 7.2.8 with commit 5bd42f74ec3b4f4687fb600f367af0828d513b3c Issue introduced in 4.14 with commit d41861942fc55c14b6280d9568a0d0112037f065 and fixed in 7.3-rc4 with commit ef9fbe1b93f3b617b96e86d5cd76b3fa44514cb5 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-98359 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/core/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/be4b44c8b47c67a04c08b1a0aba18006b749ae6a https://git.kernel.org/stable/c/45c60ffc79771bad154f224a05753191cf1b37bc https://git.kernel.org/stable/c/520cd057f138ed8dbe8e05f0eae3a8ed4c5d3a5e https://git.kernel.org/stable/c/a219459fbd1b2598e63c81a52847eba6c28b72d2 https://git.kernel.org/stable/c/5bd42f74ec3b4f4687fb600f367af0828d513b3c https://git.kernel.org/stable/c/ef9fbe1b93f3b617b96e86d5cd76b3fa44514cb5