From mboxrd@z Thu Jan 1 00:00:00 1970 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 0D490517BC1 for ; Fri, 4 Sep 2026 15:59:35 +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=1788537576; cv=none; b=OHYd28DyuJk/TWWyQW+s5Xr/OjIj1lsBnIrQw9laB0TaURRqtx80QIg6nyJ0wFjviIbWoWHtjoXXwm+OYV/tOlVr7orM44QSqK+q0Licr7LHCL5erHr6dvjXv1lOwsHd2iG4kGn1YqXR+/RD5ZII1MfrZqonFvivW2+Gvgm6QTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788537576; c=relaxed/simple; bh=hW1a+g5ZyHLvnBQe4NJQaLdgfdQ6QYNe3a32VP79MBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F/73oJU1SAeX3UZ1XZmfzFZPMQv8dWLxS7VUhKdEMtUOhZg4DHukRSqp6yLiJxgBCkDcYIwOtNH2zcwV7LCtZOAWHo42rISOdul3ib8JjthHmhjmm1CLOsEt2UKsP4gPzDTSwdrE4PjFoNt/1qGc2fy2ZT4TeHTKhEJoTHyru+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wi/OE/be; 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="wi/OE/be" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B53F1F00ADE; Fri, 4 Sep 2026 15:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788537574; bh=LfQSWcwg5WuApc23YEXJ+s1Ec7Izbm078acuwzPqzYU=; h=From:To:Cc:Subject:Date:Reply-To; b=wi/OE/beAWWs+kfYW6LB7y2mL9YzzVwwDVzGizaixIPizOt/AXxUWwoAuqJ4clgxY YFgUM4MJsij9JHJtEMR1LlY8R4MnpeWZBKl5STDHp4bwGrIcy728UEfDfjp8sjXSa8 VSSDUPJXM44VQUukVKYwEi4wgRSmv8MTvnaFbzok= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80864: RDMA/rxe: Fix responder UAF on IB_QP_MAX_DEST_RD_ATOMIC modify_qp Date: Fri, 4 Sep 2026 17:53:31 +0200 Message-ID: <2026090403-CVE-2026-80864-da49@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=3496; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=spfmWPzra+XA+apcxii3ycId6WPtdRjNGwxColpmhYw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmzXsZvbdC+4zx34pyL8wssu57K7opTrF1eZ6+3curxw 31vfvZu7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJeD9hmO8V8+v7izKthog5 1TOP5zeK1p3fbMwwv/bkQ8mjbMmfTx3qW1K+Oou949Q5DQA= 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/rxe: Fix responder UAF on IB_QP_MAX_DEST_RD_ATOMIC modify_qp rxe_qp_from_attr() handles IB_QP_MAX_DEST_RD_ATOMIC outside the IB_QP_STATE path, so it holds no state_lock and runs while the responder task rxe_receiver() (recv_task on rxe_wq) is live. A modify_qp() setting only that attribute calls free_rd_atomic_resources() then alloc_rd_atomic_resources(), swapping qp->resp.resources[] while rxe_prepare_res()/find_resource() walk it; free_rd_atomic_resources() also leaves the cached pointer qp->resp.res dangling. A local unprivileged user can race the free/realloc into a use-after-free in rxe_receiver() (local DoS). Drain recv_task around the swap with rxe_disable_task()/rxe_enable_task(), as rxe_qp_reset() already does when tearing this array down, re-enabling only after alloc_rd_atomic_resources() succeeds so the responder never resumes against a NULL qp->resp.resources on the ENOMEM path. Also clear qp->resp.res in free_rd_atomic_resources(), like the rxe_resp.c completion paths. Reproduced under KASAN; the slab-use-after-free in rxe_receiver() is gone. The Linux kernel CVE team has assigned CVE-2026-80864 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 6.12.108 with commit 0136b528b753c5a56e4d997ef20b86bb6750b8fb Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 6.18.49 with commit ffa4f0be69656be1755090f02db38d49816585c6 Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 7.1.13 with commit d4cd32eb8bd2b0ffbdc7b1f3d82ce6a371f8f844 Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 7.2.3 with commit 60dfd47929cd1e7070daa810d40ce538d888410d Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 7.3-rc1 with commit 6f7014237405e7f032b5c53a82d9eccf6161c291 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-80864 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/sw/rxe/rxe_qp.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/0136b528b753c5a56e4d997ef20b86bb6750b8fb https://git.kernel.org/stable/c/ffa4f0be69656be1755090f02db38d49816585c6 https://git.kernel.org/stable/c/d4cd32eb8bd2b0ffbdc7b1f3d82ce6a371f8f844 https://git.kernel.org/stable/c/60dfd47929cd1e7070daa810d40ce538d888410d https://git.kernel.org/stable/c/6f7014237405e7f032b5c53a82d9eccf6161c291