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 B44133ED12B for ; Tue, 6 Oct 2026 10:30: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=1791282621; cv=none; b=i7oEte+vRCb1ouQbCqWXoFT3LEYqXVKlOSbnvfandcDgWG/uz8zYD65wPQywXyj2c1aY/V5ARbuRL6QOTzYXQinMfVVkMwKImPxlsAEJ059qucyU8WjQIRrEpgyUviSQFohEerJUug/vcpXhJKgdk2kPGluuLgQy+SEBHdKTBIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282621; c=relaxed/simple; bh=EVi9zqL1+P4SxA80af1s4Zp/ZqLqGzct6lL0fgWluDs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dQff6A/hciYGKfir7DBKQ2/xMCyx7aw3qt59rOLStnlUfbd4ZUUkMgHsRNslWCyUBYhazCTsJ8lNAD2+ZH6CHX13DMfqT1NM8I4o/eiYwFYnGaPrezkqaHn0BYKnlo0XBDAYujVKlNB8bPl8luNGVTioCprfKNeblNn2UQsMf2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bslxr9sX; 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="bslxr9sX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F091E1F000FF; Tue, 6 Oct 2026 10:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282619; bh=BwF0EPXvbGCeP15F/PeJM5cAzZhYarENQ9GztaLymiA=; h=From:To:Cc:Subject:Date:Reply-To; b=bslxr9sXwkTUW5sj2Y+Bf3ztgfhUj8Y3dNcO5hB9q+WzNpgMNV4G3nuXeMCLcrYZR k0Mh3If/WJc3k5JuYPgDV+2RbaMhrCeUIt3sWXw+FiSK5j0+cNWBBKnS0UOBBvPTSg ZF7tuLiZbDlvdqPTO+ueEo9ZHm5sLkTPO/EQUNBw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98361: RDMA/rxe: Restore HMM_PFN_WRITE check in ODP write paths Date: Tue, 6 Oct 2026 10:47:42 +0200 Message-ID: <2026100621-CVE-2026-98361-66c1@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=3375; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2XqHQPdSqmivwrzjWg9jkJBTHNsKIXr8lZqOJXkv/Sw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtiqq/C41v/I6+4jF08x3ZhmZAQv+SxstbLMzuXAwc LelBGN8RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkLxvD/FrGljotw7uxiTw/ etjezp92aK18O8M8lYlacup7/3VHOHu/mjHV1L9+Oac0AA== 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: Restore HMM_PFN_WRITE check in ODP write paths Commit 0b261d7c1cd3 ("RDMA/rxe: Break endless pagefault loop for RO pages") dropped the access permission test from rxe_check_pagefault() and left only HMM_PFN_VALID. A page faulted in read-only, for example a page-cache folio behind a PROT_READ file mapping, then satisfies the check and ODP write operations (RDMA WRITE, RDMA READ response, SEND payload, atomics) modify it through kmap without ever breaking CoW. An unprivileged user can register an ODP MR over such a mapping and have incoming RDMA traffic overwrite the page cache of a file it only holds O_RDONLY, including /etc/passwd or setuid binaries. This is the same primitive class as Dirty COW and CVE-2022-2590. mlx5 has the missing invariant: its ODP path sets the device write bit only for pfns that carry HMM_PFN_WRITE. Restore it in rxe by requiring HMM_PFN_WRITE in rxe_check_pagefault() for every operation except RXE_PAGEFAULT_RDONLY. A write to a non-writable VMA now fails the one fault attempt with -EPERM from hmm_vma_fault() instead of re-faulting forever. For a writable VMA the fault breaks CoW and the write lands in the private page. Keep pmem flushes on the read-only check. arch_wb_cache_pmem() never modifies memory, and the FLUSH access bits do not make the umem writable, so classifying flushes as writes would make every flush against a flush-only MR fail. The Linux kernel CVE team has assigned CVE-2026-98361 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 0b261d7c1cd32dc93cbc92425fb55e67b24c6638 and fixed in 6.18.54 with commit c6f56982ec5c7da83c4bdfcce3b6db18bcfe6425 Issue introduced in 6.16 with commit 0b261d7c1cd32dc93cbc92425fb55e67b24c6638 and fixed in 7.2.8 with commit 2d6c6f94d3e1cde049fe5db71dbd5549f10b2de1 Issue introduced in 6.16 with commit 0b261d7c1cd32dc93cbc92425fb55e67b24c6638 and fixed in 7.3-rc4 with commit 769001ce838d907ecaa95f1d0a4e8fc86f761f9f 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-98361 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_odp.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/c6f56982ec5c7da83c4bdfcce3b6db18bcfe6425 https://git.kernel.org/stable/c/2d6c6f94d3e1cde049fe5db71dbd5549f10b2de1 https://git.kernel.org/stable/c/769001ce838d907ecaa95f1d0a4e8fc86f761f9f