{"id":"CVE-2026-74584","aliases":["CVE-2026-74584"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/bnxt_re: zero shared page before exposing to userspace","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/bnxt_re: zero shared page before exposing to userspace\n\nbnxt_re_alloc_ucontext() allocates uctx->shpg via\n__get_free_page(GFP_KERNEL). The buddy allocator does not zero pages\nwithout __GFP_ZERO, so the page contains stale kernel data from\nwhatever object most recently freed it.\n\nThe page is then mapped into userspace via vm_insert_page() under\nBNXT_RE_MMAP_SH_PAGE in bnxt_re_mmap(). The driver only ever writes\n4 bytes (a u32 AVID) at offset BNXT_RE_AVID_OFFT (0x10) inside\nbnxt_re_create_ah(); the remaining 4092 bytes of the page are exposed\nto userspace unsanitised, leaking kernel memory contents.\n\nAny user with access to /dev/infiniband/uverbsX on a host with a\nbnxt_re device (typically rdma group membership) can read this data\nvia a single mmap() at pgoff 0 after IB_USER_VERBS_CMD_GET_CONTEXT.\n\nOther shared pages in the same file already use get_zeroed_page()\ncorrectly:\n\n  drivers/infiniband/hw/bnxt_re/ib_verbs.c\n      srq->uctx_srq_page = (void *)get_zeroed_page(GFP_KERNEL);\n      cq->uctx_cq_page  = (void *)get_zeroed_page(GFP_KERNEL);\n\nuctx->shpg is the only outlier. Bring it in line with the existing\nconvention by switching to get_zeroed_page().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/bnxt_re: zero shared page before exposing to userspace\n\nbnxt_re_alloc_ucontext() allocates uctx->shpg via\n__get_free_page(GFP_KERNEL). The buddy allocator does not zero pages\nwithout __GFP_ZERO, so the page contains stale kernel data from\nwhatever object most recently freed it.\n\nThe page is then mapped into userspace via vm_insert_page() under\nBNXT_RE_MMAP_SH_PAGE in bnxt_re_mmap(). The driver only ever writes\n4 bytes (a u32 AVID) at offset BNXT_RE_AVID_OFFT (0x10) inside\nbnxt_re_create_ah(); the remaining 4092 bytes of the page are exposed\nto userspace unsanitised, leaking kernel memory contents.\n\nAny user with access to /dev/infiniband/uverbsX on a host with a\nbnxt_re device (typically rdma group membership) can read this data\nvia a single mmap() at pgoff 0 after IB_USER_VERBS_CMD_GET_CONTEXT.\n\nOther shared pages in the same file already use get_zeroed_page()\ncorrectly:\n\n  drivers/infiniband/hw/bnxt_re/ib_verbs.c\n      srq->uctx_srq_page = (void *)get_zeroed_page(GFP_KERNEL);\n      cq->uctx_cq_page  = (void *)get_zeroed_page(GFP_KERNEL);\n\nuctx->shpg is the only outlier. Bring it in line with the existing\nconvention by switching to get_zeroed_page().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nRDMA/bnxt_re: poner a cero la página compartida antes de exponerla al espacio de usuario\n\nbnxt_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.\n\nLa 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.\n\nCualquier 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.\n\nOtras páginas compartidas en el mismo archivo ya usan get_zeroed_page() correctamente:\n\n  drivers/infiniband/hw/bnxt_re/ib_verbs.c\n      srq -> uctx_srq_page = (void *)get_zeroed_page(GFP_KERNEL);\n      cq -> uctx_cq_page  = (void *)get_zeroed_page(GFP_KERNEL);\n\nuctx -> shpg es la única excepción. Ponerlo en línea con la convención existente cambiando a get_zeroed_page().","source":"nvd"}],"published":"2026-08-22T14:28:07.988Z","modified":"2026-10-16T20:17:40.707Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","fixed":"53c97e9882f4e747b4ac31b211317c2eba541af9","status":"affected"},{"type":"git","introduced":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","fixed":"9896bdfd21d918e9f26a52bc6109cc77970ee0b1","status":"affected"},{"type":"git","introduced":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","fixed":"9128c2411b83a64c0a69d2ff059c741bde25a9cc","status":"affected"},{"type":"git","introduced":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","fixed":"c19b360fa10c521c0b681875cdaa51545d45a491","status":"affected"},{"type":"git","introduced":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","fixed":"a3ed2daab02b2a706e882ad31b5c3c4f33cb5bb1","status":"affected"},{"type":"git","introduced":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","fixed":"e2b143df29003d2704b51f62e9297006953dbacb","status":"affected"},{"type":"git","introduced":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","fixed":"c75f8ce4baa29ae57fe615c6a2c5101f59b8b89a","status":"affected"},{"type":"git","introduced":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","fixed":"f6b079629becfa977f9c51fe53ad2e6dcc55ef44","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.11","status":"unaffected"},{"type":"semver","introduced":"5.10.260","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.211","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.177","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.144","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.95","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.37","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.14","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/53c97e9882f4e747b4ac31b211317c2eba541af9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9896bdfd21d918e9f26a52bc6109cc77970ee0b1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9128c2411b83a64c0a69d2ff059c741bde25a9cc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c19b360fa10c521c0b681875cdaa51545d45a491","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a3ed2daab02b2a706e882ad31b5c3c4f33cb5bb1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e2b143df29003d2704b51f62e9297006953dbacb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c75f8ce4baa29ae57fe615c6a2c5101f59b8b89a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f6b079629becfa977f9c51fe53ad2e6dcc55ef44","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T19:01:20.354Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74584","url":"https://www.cve.org/CVERecord?id=CVE-2026-74584","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:58.544Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74584","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74584","licence":"Public domain","modified":"2026-10-16T20:17:40.707Z"}],"updatedAt":"2026-11-25T22:59:34.879Z","epss":{"score":0.00131,"percentile":0.02933,"date":"2026-12-01T12:00:22.000Z"}}