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 A42963839B9 for ; Sat, 15 Aug 2026 06:36:19 +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=1786775780; cv=none; b=SVK54dNKDXcG2PK6tkUJvUYYiUY4ifqRXwBVfU4O99Ns9rPgTl7YaepFw3JKvrO6NJ3SG+tqZDvzZnhHKnfU13dkEDrllxa1/e1SNC/poXQSerbPcNmuH9x6VF60nDdO+ewrJl7wNWui/VI43oHxFFceDtXlLkUW4FdfWSk2to8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775780; c=relaxed/simple; bh=DsrbwkErRnh7W0Pu3YZFNYYw+Cydv79mMxVbaYjfBV4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O0aOPv4Ty7yLq4M131M5W3dxwd1uN7eYbZtB4aoQBISvR8/0L4KS4ErQVOdgjW6kZsp2lgU3IP6g1ZUZSitjxFMt6/yXEe0laiD/r3/bdxtEErhFQ5tPqqito+vDWwUW+P21Ad4eHkO+jpvfPadlsk5tmtynn0EGoSSAEewc6t4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UC8rZt9a; 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="UC8rZt9a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0184F1F000E9; Sat, 15 Aug 2026 06:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775779; bh=xsVGo1h9m6fsNCKB7adMfW+tjrnOYCP7XMcHNHZ/Z58=; h=From:To:Cc:Subject:Date:Reply-To; b=UC8rZt9am7lSv8Eh8E/VMPV03oClcJsLxEkCa/bA1rsrQqsmyAwfGXzi1eXEXCFfW LVcMMcIgPImBOTiMrZBOpYFriVnM+T1uE7408vT8CExCZBBH7mLIxHMAiLHWNcIM38 XxQntWKGNeNxceWD/0IMulP6tqN56vR/ME+dbmZw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74334: RDMA/nldev: Fix locking when accessing mr->pd Date: Sat, 15 Aug 2026 15:11:01 +0900 Message-ID: <2026081556-CVE-2026-74334-dadf@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=2390; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cR11v9JrBVN84sthm8wBbbDmMlXwbZ02E1daNuDZxx8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjAIzZ74xkz9xJiRK7Y27c0t8akzRhushaxZrbO3SY MvmEb7YEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZw84wz3bCuoXHZzKXMZst /Jo/4WRe83q3GIa5gmEt0m/2chRPXvuUp8Rn2oLYzU8uAAA= 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/nldev: Fix locking when accessing mr->pd Sashiko points out that, due to rereg_mr, the PD is actually variable and all the touches in nldev are racy. Use mr->device instead of mr->pd->device. Getting the PD restrack ID is more tricky. To avoid disturbing all the happy paths, add an rdma_restrack_sync() operation which is sort of like flush_workqueue() or synchronize_irq(): after it returns, all the old nldev touches to the mr are gone and everything sees the new PD. This makes it safe to reach into the PD pointer. The Linux kernel CVE team has assigned CVE-2026-74334 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit da5c8507821573b8ed6e3f47e009f273493ffaf7 and fixed in 7.1.5 with commit 1a132ee4e655288d9a0937ea5109a0d038431ae9 Issue introduced in 4.18 with commit da5c8507821573b8ed6e3f47e009f273493ffaf7 and fixed in 7.2-rc1 with commit 50d5c02ab8e62325548bd3a6e6b758a9dcd6e7c3 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-74334 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/nldev.c drivers/infiniband/core/restrack.c drivers/infiniband/core/restrack.h drivers/infiniband/core/uverbs_cmd.c include/rdma/ib_verbs.h 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/1a132ee4e655288d9a0937ea5109a0d038431ae9 https://git.kernel.org/stable/c/50d5c02ab8e62325548bd3a6e6b758a9dcd6e7c3