# CVE-2025-22085: RDMA/core: Fix use-after-free when rename device name

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-04-16T14:12:33.821Z
- **Modified:** 2026-08-05T11:56:38.895Z

## Who should check

- Anyone running Linux \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 0d6460b9d2a3ee380940bdf47680751ef91cb88e; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 56ec8580be5174b2b9774066e60f1aad56d201db; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< edf6b543e81ba68c6dbac2499ab362098a5a9716; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd
- Anyone running Linux 6.12

## Description

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

RDMA/core: Fix use-after-free when rename device name

Syzbot reported a slab-use-after-free with the following call trace:

==================================================================
BUG: KASAN: slab-use-after-free in nla\_put+0xd3/0x150 lib/nlattr.c:1099
Read of size 5 at addr ffff888140ea1c60 by task syz.0.988/10025

CPU: 0 UID: 0 PID: 10025 Comm: syz.0.988
Not tainted 6.14.0-rc4-syzkaller-00859-gf77f12010f67 \#0
Hardware name: Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:408 \[inline\]
 print\_report+0x16e/0x5b0 mm/kasan/report.c:521
 kasan\_report+0x143/0x180 mm/kasan/report.c:634
 kasan\_check\_range+0x282/0x290 mm/kasan/generic.c:189
 \_\_asan\_memcpy+0x29/0x70 mm/kasan/shadow.c:105
 nla\_put+0xd3/0x150 lib/nlattr.c:1099
 nla\_put\_string include/net/netlink.h:1621 \[inline\]
 fill\_nldev\_handle+0x16e/0x200 drivers/infiniband/core/nldev.c:265
 rdma\_nl\_notify\_event+0x561/0xef0 drivers/infiniband/core/nldev.c:2857
 ib\_device\_notify\_register+0x22/0x230 drivers/infiniband/core/device.c:1344
 ib\_register\_device+0x1292/0x1460 drivers/infiniband/core/device.c:1460
 rxe\_register\_device+0x233/0x350 drivers/infiniband/sw/rxe/rxe\_verbs.c:1540
 rxe\_net\_add+0x74/0xf0 drivers/infiniband/sw/rxe/rxe\_net.c:550
 rxe\_newlink+0xde/0x1a0 drivers/infiniband/sw/rxe/rxe.c:212
 nldev\_newlink+0x5ea/0x680 drivers/infiniband/core/nldev.c:1795
 rdma\_nl\_rcv\_skb drivers/infiniband/core/netlink.c:239 \[inline\]
 rdma\_nl\_rcv+0x6dd/0x9e0 drivers/infiniband/core/netlink.c:259
 netlink\_unicast\_kernel net/netlink/af\_netlink.c:1313 \[inline\]
 netlink\_unicast+0x7f6/0x990 net/netlink/af\_netlink.c:1339
 netlink\_sendmsg+0x8de/0xcb0 net/netlink/af\_netlink.c:1883
 sock\_sendmsg\_nosec net/socket.c:709 \[inline\]
 \_\_sock\_sendmsg+0x221/0x270 net/socket.c:724
 \_\_\_\_sys\_sendmsg+0x53a/0x860 net/socket.c:2564
 \_\_\_sys\_sendmsg net/socket.c:2618 \[inline\]
 \_\_sys\_sendmsg+0x269/0x350 net/socket.c:2650
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7f42d1b8d169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 ...
RSP: 002b:00007f42d2960038 EFLAGS: 00000246 ORIG\_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f42d1da6320 RCX: 00007f42d1b8d169
RDX: 0000000000000000 RSI: 00004000000002c0 RDI: 000000000000000c
RBP: 00007f42d1c0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f42d1da6320 R15: 00007ffe399344a8
 \</TASK\>

Allocated by task 10025:
 kasan\_save\_stack mm/kasan/common.c:47 \[inline\]
 kasan\_save\_track+0x3f/0x80 mm/kasan/common.c:68
 poison\_kmalloc\_redzone mm/kasan/common.c:377 \[inline\]
 \_\_kasan\_kmalloc+0x98/0xb0 mm/kasan/common.c:394
 kasan\_kmalloc include/linux/kasan.h:260 \[inline\]
 \_\_do\_kmalloc\_node mm/slub.c:4294 \[inline\]
 \_\_kmalloc\_node\_track\_caller\_noprof+0x28b/0x4c0 mm/slub.c:4313
 \_\_kmemdup\_nul mm/util.c:61 \[inline\]
 kstrdup+0x42/0x100 mm/util.c:81
 kobject\_set\_name\_vargs+0x61/0x120 lib/kobject.c:274
 dev\_set\_name+0xd5/0x120 drivers/base/core.c:3468
 assign\_name drivers/infiniband/core/device.c:1202 \[inline\]
 ib\_register\_device+0x178/0x1460 drivers/infiniband/core/device.c:1384
 rxe\_register\_device+0x233/0x350 drivers/infiniband/sw/rxe/rxe\_verbs.c:1540
 rxe\_net\_add+0x74/0xf0 drivers/infiniband/sw/rxe/rxe\_net.c:550
 rxe\_newlink+0xde/0x1a0 drivers/infiniband/sw/rxe/rxe.c:212
 nldev\_newlink+0x5ea/0x680 drivers/infiniband/core/nldev.c:1795
 rdma\_nl\_rcv\_skb drivers/infiniband/core/netlink.c:239 \[inline\]
 rdma\_nl\_rcv+0x6dd/0x9e0 drivers/infiniband/core/netlink.c:259
 netlink\_unicast\_kernel net/netlink/af\_netlink.c:1313 \[inline\]
 netlink\_unicast+0x7f6/0x990 net/netlink/af\_netlink.c:1339
 netlink\_sendmsg+0x8de/0xcb0 net
---truncated---

## Affected and fixed versions

- Linux: \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 0d6460b9d2a3ee380940bdf47680751ef91cb88e; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 56ec8580be5174b2b9774066e60f1aad56d201db; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< edf6b543e81ba68c6dbac2499ab362098a5a9716; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-22085.md
Affected: Linux >= 9cbed5aab5aeea420d0aa945733bf608449d44fb, < 0d6460b9d2a3ee380940bdf47680751ef91cb88e; >= 9cbed5aab5aeea420d0aa945733bf608449d44fb, < 56ec8580be5174b2b9774066e60f1aad56d201db; >= 9cbed5aab5aeea420d0aa945733bf608449d44fb, < edf6b543e81ba68c6dbac2499ab362098a5a9716; >= 9cbed5aab5aeea420d0aa94…
Fixed in: Linux 0d6460b9d2a3ee380940bdf47680751ef91cb88e, Linux 56ec8580be5174b2b9774066e60f1aad56d201db, Linux 1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd

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-2025-22085 being exploited?

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

### How serious is CVE-2025-22085?

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

### Which versions are affected by CVE-2025-22085?

Linux \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 0d6460b9d2a3ee380940bdf47680751ef91cb88e; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 56ec8580be5174b2b9774066e60f1aad56d201db; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< edf6b543e81ba68c6dbac2499ab362098a5a9716; \>= 9cbed5aab5aeea420d0aa945733bf608449d44fb, \< 1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd; Linux 6.12.

### Is there a fix for CVE-2025-22085?

Yes. Fixed in Linux 0d6460b9d2a3ee380940bdf47680751ef91cb88e, Linux 56ec8580be5174b2b9774066e60f1aad56d201db, Linux 1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd. Upgrade Linux to 1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd or later.

### How do I check if I'm affected by CVE-2025-22085?

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

- patch: <https://git.kernel.org/stable/c/0d6460b9d2a3ee380940bdf47680751ef91cb88e>
- patch: <https://git.kernel.org/stable/c/56ec8580be5174b2b9774066e60f1aad56d201db>
- patch: <https://git.kernel.org/stable/c/edf6b543e81ba68c6dbac2499ab362098a5a9716>
- patch: <https://git.kernel.org/stable/c/1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd>

## 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-2025-22085>

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