7.1high
RDMA/bnxt_re: zero shared page before exposing to userspace
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/bnxt_re: zero shared page before exposing to userspace bnxt_re_alloc_ucontext() allocates uctx->shpg via __get_free_page(GFP_KERNEL). The buddy allocator does not zero pages without __GFP_ZERO, so the page contains stale kernel data from whatever object most recently freed it. The page is then mapped into userspace via vm_insert_page() under BNXT_RE_MMAP_SH_PAGE in bnxt_re_mmap(). The driver only ever writes 4 bytes (a u32 AVID) at offset BNXT_RE_AVID_OFFT (0x10) inside bnxt_re_create_ah(); the remaining 4092 bytes of the page are exposed to userspace unsanitised, leaking kernel memory contents. Any user with access to /dev/infiniband/uverbsX on a host with a bnxt_re device (typically rdma group membership) can read this data via a single mmap() at pgoff 0 after IB_USER_VERBS_CMD_GET_CONTEXT. Other shared pages in the same file already use get_zeroed_page() correctly: drivers/infiniband/hw/bnxt_re/ib_verbs.c srq->uctx_srq_page = (void *)get_zeroed_page(GFP_KERNEL); cq->uctx_cq_page = (void *)get_zeroed_page(GFP_KERNEL); uctx->shpg is the only outlier. Bring it in line with the existing convention by switching to get_zeroed_page().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 before 53c97e9882f4e747b4ac31b211317c2eba541af9, from 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 before 9896bdfd21d918e9f26a52bc6109cc77970ee0b1, from 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 before 9128c2411b83a64c0a69d2ff059c741bde25a9cc, from 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 before c19b360fa10c521c0b681875cdaa51545d45a491, from 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 before a3ed2daab02b2a706e882ad31b5c3c4f33cb5bb1, from 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 before e2b143df29003d2704b51f62e9297006953dbacb, from 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 before c75f8ce4baa29ae57fe615c6a2c5101f59b8b89a, from 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 before f6b079629becfa977f9c51fe53ad2e6dcc55ef44 and 1 more Not affected: before 4.11, from 5.10.260 up to 5.10.*, from 5.15.211 up to 5.15.*, from 6.1.177 up to 6.1.*, from 6.6.144 up to 6.6.*, from 6.12.95 up to 6.12.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: RDMA/bnxt_re: zero shared page before exposing to userspace bnxt_re_alloc_ucontext() allocates uctx->shpg via __get_free_page(GFP_KERNEL). The buddy allocator does not zero pages without __GFP_ZERO, so the page contains stale kernel data from whatever object most recently freed it. The page is then mapped into userspace via vm_insert_page() under BNXT_RE_MMAP_SH_PAGE in bnxt_re_mmap(). The driver only ever writes 4 bytes (a u32 AVID) at offset BNXT_RE_AVID_OFFT (0x10) inside bnxt_re_create_ah(); the remaining 4092 bytes of the page are exposed to userspace unsanitised, leaking kernel memory contents. Any user with access to /dev/infiniband/uverbsX on a host with a bnxt_re device (typically rdma group membership) can read this data via a single mmap() at pgoff 0 after IB_USER_VERBS_CMD_GET_CONTEXT. Other shared pages in the same file already use get_zeroed_page() correctly: drivers/infiniband/hw/bnxt_re/ib_verbs.c srq->uctx_srq_page = (void *)get_zeroed_page(GFP_KERNEL); cq->uctx_cq_page = (void *)get_zeroed_page(GFP_KERNEL); uctx->shpg is the only outlier. Bring it in line with the existing convention by switching to get_zeroed_page().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: RDMA/bnxt_re: poner a cero la página compartida antes de exponerla al espacio de usuario bnxt_re_alloc_ucontext() asigna uctx -> shpg a través de __get_free_page(GFP_KERNEL). El asignador buddy no pone a cero las páginas sin __GFP_ZERO, por lo que la página contiene datos obsoletos del kernel del objeto que la liberó más recientemente. La página se mapea luego en el espacio de usuario a través de vm_insert_page() bajo BNXT_RE_MMAP_SH_PAGE en bnxt_re_mmap(). El controlador solo escribe 4 bytes (un AVID u32) en el desplazamiento BNXT_RE_AVID_OFFT (0x10) dentro de bnxt_re_create_ah(); los 4092 bytes restantes de la página se exponen al espacio de usuario sin sanear, filtrando el contenido de la memoria del kernel. Cualquier usuario con acceso a /dev/infiniband/uverbsX en un host con un dispositivo bnxt_re (típicamente membresía del grupo rdma) puede leer estos datos a través de una única llamada a mmap() en pgoff 0 después de IB_USER_VERBS_CMD_GET_CONTEXT. Otras páginas compartidas en el mismo archivo ya usan get_zeroed_page() correctamente: drivers/infiniband/hw/bnxt_re/ib_verbs.c srq -> uctx_srq_page = (void *)get_zeroed_page(GFP_KERNEL); cq -> uctx_cq_page = (void *)get_zeroed_page(GFP_KERNEL); uctx -> shpg es la única excepción. Ponerlo en línea con la convención existente cambiando a get_zeroed_page().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74584 changed 2026-10-16 | CVE Terms of Use |
| NVD | CVE-2026-74584 changed 2026-10-16 | Public domain |