Vulnerability · Published Apr 16, 2025 · Assigned by Linux
CVE-2025-22085RDMA/core: Fix use-after-free when rename device name
High 7.8
In plain English
A high-severity use-after-free in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | kernel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:10 | kernel-abi-stablelists | 6.12.0-55.25.1.el10_0 | ALSA-2025:12662 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-debug | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-debug-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-debug-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-debug-uki-virt | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-devel-matched | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:10 | kernel-doc | 6.12.0-55.25.1.el10_0 | ALSA-2025:12662 |
| AlmaLinux:9 | kernel-doc | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-headers | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-debug | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-debug-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-debug-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-64k-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-debug | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-debug-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-debug-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-debug-kvm | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-debug-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-debug-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-debug-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-kvm | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-rt-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-tools | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-tools-libs | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-tools-libs-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-uki-virt | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-uki-virt-addons | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-zfcpdump | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-zfcpdump-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-zfcpdump-devel | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-zfcpdump-devel-matched | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-zfcpdump-modules | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-zfcpdump-modules-core | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | kernel-zfcpdump-modules-extra | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | libperf | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | perf | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | python3-perf | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | rtla | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| AlmaLinux:9 | rv | 5.14.0-570.30.1.el9_6 | ALSA-2025:11861 |
| Debian:13 | linux | 6.12.25-1 | DEBIAN-CVE-2025-22085 |
| Debian:14 | linux | 6.12.25-1 | DEBIAN-CVE-2025-22085 |
| Rocky Linux:10 | kernel | 0:6.12.0-55.25.1.el10_0 | RLSA-2025:12662 |
| Rocky Linux:9 | kernel | 0:5.14.0-570.30.1.el9_6 | RLSA-2025:11861 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-22085 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-22085 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 9cbed5aab5aeea420d0aa945733bf608449d44fb – before 0d6460b9d2a3ee380940bdf47680751ef91cb88e9cbed5aab5aeea420d0aa945733bf608449d44fb – before 56ec8580be5174b2b9774066e60f1aad56d201db9cbed5aab5aeea420d0aa945733bf608449d44fb – before edf6b543e81ba68c6dbac2499ab362098a5a97169cbed5aab5aeea420d0aa945733bf608449d44fb – before 1d6a9e7449e2a0c1e2934eee7880ba8bd1e464cd |
| Linux | Linux | 6.12 |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H