CVE-2025-38022: RDMA/core: Fix "KASAN: slab-use-after-free Read in ib_register_device" problem
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Fix "KASAN: slab-use-after-free Read in ib_register_device" problem
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:408 [inline]
print_report+0xc3/0x670 mm/kasan/report.c:521
kasan_report+0xe0/0x110 mm/kasan/report.c:634
strlen+0x93/0xa0 lib/string.c:420
__fortify_strlen include/linux/fortify-string.h:268 [inline]
get_kobj_path_length lib/kobject.c:118 [inline]
kobject_get_path+0x3f/0x2a0 lib/kobject.c:158
kobject_uevent_env+0x289/0x1870 lib/kobject_uevent.c:545
ib_register_device drivers/infiniband/core/device.c:1472 [inline]
ib_register_device+0x8cf/0xe00 drivers/infiniband/core/device.c:1393
rxe_register_device+0x275/0x320 drivers/infiniband/sw/rxe/rxe_verbs.c:1552
rxe_net_add+0x8e/0xe0 drivers/infiniband/sw/rxe/rxe_net.c:550
rxe_newlink+0x70/0x190 drivers/infiniband/sw/rxe/rxe.c:225
nldev_newlink+0x3a3/0x680 drivers/infiniband/core/nldev.c:1796
rdma_nl_rcv_msg+0x387/0x6e0 drivers/infiniband/core/netlink.c:195
rdma_nl_rcv_skb.constprop.0.isra.0+0x2e5/0x450
netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline]
netlink_unicast+0x53a/0x7f0 net/netlink/af_netlink.c:1339
netlink_sendmsg+0x8d1/0xdd0 net/netlink/af_netlink.c:1883
sock_sendmsg_nosec net/socket.c:712 [inline]
__sock_sendmsg net/socket.c:727 [inline]
____sys_sendmsg+0xa95/0xc70 net/socket.c:2566
___sys_sendmsg+0x134/0x1d0 net/socket.c:2620
__sys_sendmsg+0x16d/0x220 net/socket.c:2652
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
This problem is similar to the problem that the
commit 1d6a9e7449e2 ("RDMA/core: Fix use-after-free when rename device name")
fixes.
The root cause is: the function ib_device_rename() renames the name with
lock. But in the function kobject_uevent(), this name is accessed without
lock protection at the same time.
The solution is to add the lock protection when this name is accessed in
the function kobject_uevent().
Security readout for executives and security teams
Plain-English summary
A timing flaw in the Linux kernel's RDMA subsystem can access a device name after its memory is freed. A local, low-privileged user may be able to trigger the condition without user interaction. The supplied CVSS assessment indicates possible system compromise or disruption, but the sources do not establish a practical exploit.
Executive priority
Treat as a high-priority kernel maintenance issue on RDMA-enabled systems accessible to untrusted local users. Patch through normal emergency or accelerated maintenance according to exposure. Systems without relevant RDMA functionality or untrusted local access are lower priority, but package status should still be verified.
Technical view
A race exists because ib_device_rename() changes the RDMA device name under locking while kobject_uevent() could access it without equivalent protection. The resulting use-after-free appears during RDMA device registration, including the software RXE path. The kernel fix adds locking around the name access in kobject_uevent().
Likely exposure
Exposure is limited to affected Linux kernels where relevant RDMA functionality is present and reachable locally. The supplied version data spans multiple kernel branches but is not sufficiently clear for reliable package-level decisions. Distribution backports may also change exposure, so assess the running vendor kernel rather than version numbers alone.
Exploitation context
CVSS 3.1 scores this 7.8: local access, low complexity, low privileges, no interaction, and potentially high confidentiality, integrity, and availability impact. The supplied bundle marks KEV false, and no cited source reports active exploitation. Public exploit availability and reliable real-world impact are not established by these sources.
Researcher notes
The evidence demonstrates a locking defect and KASAN-detected slab use-after-free, not a documented exploitation primitive. Important open questions include reachability under namespace and capability controls, allocator reliability, and whether vendor configurations expose the RXE netlink path. Avoid inferring remote reachability from RDMA usage alone.
Mitigation direction
Install a vendor-supported kernel containing the applicable cited stable fix.
Consult the Linux distribution's advisory for exact package and backport status.
Prioritize RDMA-enabled multi-user, compute, virtualization, and high-availability systems.
If patching is delayed, restrict untrusted local access and unnecessary RDMA availability.
Validation and detection
Inventory running kernel builds and map them to distribution security advisories.
Determine whether RDMA core and software RXE functionality are enabled or used.
Confirm the installed kernel includes the applicable stable fix or vendor backport.
Review kernel logs for use-after-free, KASAN, RDMA registration, or unexplained crash indicators.
After updating, verify every affected host booted into the remediated kernel.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-38022 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
8Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.