CVE-2026-92495: RDMA/bnxt_re: Clear VM_MAYWRITE on DBR/toggle page mmap
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/bnxt_re: Clear VM_MAYWRITE on DBR/toggle page mmap
bnxt_re_mmap() rejects VM_WRITE for the DBR_PAGE and TOGGLE_PAGE mmap flags, but a read-only mapping can still retain VM_MAYWRITE. nd later be upgraded with mprotect(PROT_WRITE). This can bypass the write check that only runs at mmap time.
Clear VM_MAYWRITE before vm_insert_page() in the shared DBR/toggle-page branch, matching the existing policy that userspace writes are not expected for these pages.
The Linux kernel CVE team has assigned CVE-2026-92495 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit ea222485788208cd79bad42d25aae9232b33a934 and fixed in 6.6.157 with commit 5361fb1e5bc246f9a2c0721543f72c8dac200769 Issue introduced in 6.6 with commit ea222485788208cd79bad42d25aae9232b33a934 and fixed in 6.12.110 with commit 13e7861809ef9e7e720ff5f0af1d4293a6d0a9b4 Issue introduced in 6.6 with commit ea222485788208cd79bad42d25aae9232b33a934 and fixed in 6.18.52 with commit 0afbfe019c881483337d9f8304e678af05ebe7cc Issue introduced in 6.6 with commit ea222485788208cd79bad42d25aae9232b33a934 and fixed in 7.2.6 with commit 518df61b9b0a5b288dfa72c87246045329c18b8c Issue introduced in 6.6 with commit ea222485788208cd79bad42d25aae9232b33a934 and fixed in 7.3-rc1 with commit 9b66c9af7172ffcf727214fa0ebe9a5e1ed6eb16
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-92495
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/bnxt_re/ib_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/5361fb1e5bc246f9a2c0721543f72c8dac200769 https://git.kernel.org/stable/c/13e7861809ef9e7e720ff5f0af1d4293a6d0a9b4 https://git.kernel.org/stable/c/0afbfe019c881483337d9f8304e678af05ebe7cc https://git.kernel.org/stable/c/518df61b9b0a5b288dfa72c87246045329c18b8c https://git.kernel.org/stable/c/9b66c9af7172ffcf727214fa0ebe9a5e1ed6eb16