# CVE-2026-64582: RDMA/rxe: Fix a use-after-free problem in rxe\_mmap

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-08-05T11:25:29.082Z
- **Modified:** 2026-10-19T21:17:48.543Z

## Who should check

- Anyone running Linux \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< b810352d0916796dabe633cdb9adee9863ab4911; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< aef5ea8578f97f2701039600846a8bcf5f21e863; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 3371f2036e0f970166bbb624e25bba46d32fa18e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 665fb7d22a700c66a78db0cf88c6e6a649aba9d0; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< e038d42cc09ca1da9d3568ce8ae062b2bfb3bc0e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< e59a6aa89e0fcd1d0707832eb4654fd9ae7d31e6; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 3525987a392536f31a484833af258971af63b24c; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 35744ab3d03c5fca8c1752f53fc8fc674e14c561
- Anyone running Linux 4.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Fix a use-after-free problem in rxe\_mmap

rxe\_mmap() removes a rxe\_mmap\_info struct from the pending\_mmaps list
and releases pending\_lock while the struct's kref is still at 1:

   list\_del\_init(&ip-\>pending\_mmaps);
   spin\_unlock\_bh(&rxe-\>pending\_lock);   /\* ref == 1, no lock held \*/
   ret = remap\_vmalloc\_range(vma, ip-\>obj, 0);  /\* walks PTEs \*/
   \[...\]
   rxe\_vma\_open(vma);                    /\* kref\_get, ref → 2 \*/
   remap\_vmalloc\_range\_partial() walks PTEs without any lock.

A concurrent DESTROY\_CQ ioctl on another CPU calls:

    kref\_put(&q-\>ip-\>ref, rxe\_mmap\_release)   /\* ref 1→0 \*/
    vfree(ip-\>obj)   /\* clears vmalloc PTEs mid-walk \*/
    kfree(ip)        /\* frees rxe\_mmap\_info \*/

This yields:

   1. Kernel crash, vmalloc\_to\_page() returns NULL when vfree wins the
   per-PTE race -\> vm\_insert\_page(NULL) → GPF in validate\_page\_before\_insert

   2. Page UAF, vmalloc\_to\_page() reads a stale PTE before vfree clears
   it. User VMA holds a PTE to a free'd page which might eventually get
   reallocated later by vmalloc which allows the attacker to get a clean
   page-level UAF.

   It is worth noting that even though a page-level UAF is possible given
   the strong primitive, it is statistically very difficult to achieve
   given the very short time window (after the last insert\_page and before
   the kref\_get).

The call trace are as below:

  Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 \[\#1\] SMP KASAN NOPTI
  KASAN: null-ptr-deref in range \[0x0000000000000008-0x000000000000000f\]
  CPU: 0 UID: 1000 PID: 413 Comm: poc Not tainted 7.0.0-rc5-dirty \#28 PREEMPT(lazy)
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
  RIP: 0010:validate\_page\_before\_insert+0x32/0x300
  Code: e5 41 57 41 56 49 89 fe 41 55 41 54 53 48 89 f3 e8 93 b5 a3 ff 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 \<80\> 3c 02 00 0f 85 7b 02 00 00 4c 8b 63 08 31 ff 4d 89 e5 41 83 e5
  RSP: 0018:ffff88811b15f2f0 EFLAGS: 00000202
  RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
  RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008
  RBP: ffff88811b15f318 R08: 0000000000000000 R09: 0000000000000000
  R10: 0000000000000000 R11: 0000000000000000 R12: ffff8881181eee00
  R13: 0000000000000000 R14: ffff8881181eee00 R15: ffff8881181eee20
  FS:  00007b1e000f76c0(0000) GS:ffff8884268e0000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 00007b1e00a24ac0 CR3: 0000000116eb3000 CR4: 00000000000006f0
  Call Trace:
   \<TASK\>
   insert\_page+0x8f/0x190
   ? \_\_pfx\_insert\_page+0x10/0x10
   ? kasan\_save\_alloc\_info+0x38/0x60
   vm\_insert\_page+0x2e7/0x400
   remap\_vmalloc\_range\_partial+0x212/0x3e0
   remap\_vmalloc\_range+0x6e/0xb0
   ? \_\_kasan\_check\_write+0x14/0x30
   rxe\_mmap+0x2e9/0x5d0
   ib\_uverbs\_mmap+0x1ad/0x2c0
   \_\_mmap\_region+0x12c2/0x2ad0
   ? \_\_pfx\_\_\_mmap\_region+0x10/0x10
   ? \_\_sanitizer\_cov\_trace\_switch+0x58/0xb0
   ? mas\_prev\_slot+0x360/0x39c0
   ? \_\_sanitizer\_cov\_trace\_switch+0x58/0xb0
   ? mas\_next\_slot+0x1e5b/0x2f40
   ? \_\_sanitizer\_cov\_trace\_cmp8+0x18/0x30
   ? unmapped\_area\_topdown+0x4dd/0x610
   ? kfree+0x1b1/0x440
   ? free\_cpumask\_var+0x16/0x30
   ? \_\_kasan\_slab\_free+0x7d/0xa0
   ? \_\_sanitizer\_cov\_trace\_cmp8+0x18/0x30
   mmap\_region+0x2e6/0x3c0
   do\_mmap+0xa3e/0x12a0
   ? \_\_pfx\_do\_mmap+0x10/0x10
   ? \_\_kasan\_check\_write+0x14/0x30
   ? down\_write\_killable+0xba/0x160
   ? \_\_pfx\_down\_write\_killable+0x10/0x10
   ? \_\_sanitizer\_cov\_trace\_cmp4+0x16/0x30
   vm\_mmap\_pgoff+0x2d4/0x4a0
   ? \_\_pfx\_vm\_mmap\_pgoff+0x10/0x10
   ? fget+0x1bf/0x270
   ksys\_mmap\_pgoff+0x40c/0x690
   ? \_\_sanitizer\_cov\_trace\_const\_cmp4+0x16/0x30
   ? \_\_pfx\_ksys\_mmap\_pgoff+0x10/0x10
   ? \_\_kasan\_check\_write+0x14/0x30
   ? \_raw\_spin\_trylock+0xbb/0x130
   ? \_\_pfx\_\_raw\_spin\_trylock+0x10/0x10
   \_\_x64\_sys\_mmap+0x135/0x1e0
   x64\_sys\_c
---truncated---

## Affected and fixed versions

- Linux: \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< b810352d0916796dabe633cdb9adee9863ab4911; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< aef5ea8578f97f2701039600846a8bcf5f21e863; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 3371f2036e0f970166bbb624e25bba46d32fa18e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 665fb7d22a700c66a78db0cf88c6e6a649aba9d0; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< e038d42cc09ca1da9d3568ce8ae062b2bfb3bc0e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< e59a6aa89e0fcd1d0707832eb4654fd9ae7d31e6; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 3525987a392536f31a484833af258971af63b24c; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 35744ab3d03c5fca8c1752f53fc8fc674e14c561 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 35744ab3d03c5fca8c1752f53fc8fc674e14c561 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64582. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64582.md
Affected: Linux >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < b810352d0916796dabe633cdb9adee9863ab4911; >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < aef5ea8578f97f2701039600846a8bcf5f21e863; >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < 3371f2036e0f970166bbb624e25bba46d32fa18e; >= 8700e3e7c4857d28ebaa824…
Fixed in: Linux 3371f2036e0f970166bbb624e25bba46d32fa18e, Linux 665fb7d22a700c66a78db0cf88c6e6a649aba9d0, Linux 3525987a392536f31a484833af258971af63b24c, Linux 35744ab3d03c5fca8c1752f53fc8fc674e14c561

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64582 being exploited?

There is no confirmed exploitation: CVE-2026-64582 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64582?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64582?

Linux \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< b810352d0916796dabe633cdb9adee9863ab4911; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< aef5ea8578f97f2701039600846a8bcf5f21e863; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 3371f2036e0f970166bbb624e25bba46d32fa18e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 665fb7d22a700c66a78db0cf88c6e6a649aba9d0; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< e038d42cc09ca1da9d3568ce8ae062b2bfb3bc0e; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< e59a6aa89e0fcd1d0707832eb4654fd9ae7d31e6; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 3525987a392536f31a484833af258971af63b24c; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< 35744ab3d03c5fca8c1752f53fc8fc674e14c561; Linux 4.8.

### Is there a fix for CVE-2026-64582?

Yes. Fixed in Linux 3371f2036e0f970166bbb624e25bba46d32fa18e, Linux 665fb7d22a700c66a78db0cf88c6e6a649aba9d0, Linux 3525987a392536f31a484833af258971af63b24c, Linux 35744ab3d03c5fca8c1752f53fc8fc674e14c561. Upgrade Linux to 35744ab3d03c5fca8c1752f53fc8fc674e14c561 or later.

### How do I check if I'm affected by CVE-2026-64582?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b810352d0916796dabe633cdb9adee9863ab4911>
- other: <https://git.kernel.org/stable/c/aef5ea8578f97f2701039600846a8bcf5f21e863>
- other: <https://git.kernel.org/stable/c/3371f2036e0f970166bbb624e25bba46d32fa18e>
- other: <https://git.kernel.org/stable/c/665fb7d22a700c66a78db0cf88c6e6a649aba9d0>
- other: <https://git.kernel.org/stable/c/e038d42cc09ca1da9d3568ce8ae062b2bfb3bc0e>
- other: <https://git.kernel.org/stable/c/e59a6aa89e0fcd1d0707832eb4654fd9ae7d31e6>
- other: <https://git.kernel.org/stable/c/3525987a392536f31a484833af258971af63b24c>
- other: <https://git.kernel.org/stable/c/35744ab3d03c5fca8c1752f53fc8fc674e14c561>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64582>

HTML: <https://flawdb.com/CVE-2026-64582> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64582>
