CVE-2022-48726·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: RDMA/ucma: Protect mc during concurrent multicast leaves Partially revert the commit mentioned in the Fixes line to make sure that allocation and erasing multicast struct are locked. BUG: KASAN: use-after-free in ucma_cleanup_multicast drivers/infiniband/core/ucma.c:491 [inline] BUG: KASAN: use-after-free in ucma_destroy_private_ctx+0x914/0xb70 drivers/infiniband/core/ucma.c:579 Read of size 8 at addr ffff88801bb74b00 by task syz-executor.1/25529 CPU: 0 PID: 25529 Comm: syz-executor.1 Not tainted 5.16.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x8d/0x320 mm/kasan/report.c:247 __kasan_report mm/kasan/report.c:433 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:450 ucma_cleanup_multicast drivers/infiniband/core/ucma.c:491 [inline] ucma_destroy_private_ctx+0x914/0xb70 drivers/infiniband/core/ucma.c:579 ucma_destroy_id+0x1e6/0x280 drivers/infiniband/core/ucma.c:614 ucma_write+0x25c/0x350 drivers/infiniband/core/ucma.c:1732 vfs_write+0x28e/0xae0 fs/read_write.c:588 ksys_write+0x1ee/0x250 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae Currently the xarray search can touch a concurrently freeing mc as the xa_for_each() is not surrounded by any lock. Rather than hold the lock for a full scan hold it only for the effected items, which is usually an empty list.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.16.8
- Published
- 2024-06-20
Affected versions
From: 5.16
Until: 5.16.8
Fixed in: 5.16.8
How to fix this CVE
Update your Linux kernel to version 5.16.8 or later to resolve a use-after-free vulnerability in the RDMA/UCMA multicast handling code. This flaw allows local attackers with user-level privileges to trigger memory corruption through concurrent multicast operations. Apply the patch immediately, especially on systems exposing RDMA interfaces to untrusted users.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r (should be 5.16.8 or later to be patched)
- Verify RDMA support is enabled: grep -i 'infiniband\|rdma' /boot/config-$(uname -r) | head -5
- Check for vulnerable UCMA module: lsmod | grep rdma_ucm
- Confirm fix by examining kernel source: grep -A5 'ucma_cleanup_multicast' /usr/src/linux-headers-$(uname -r)/drivers/infiniband/core/ucma.c | grep -E 'xa_lock|spin_lock' (should show locking around multicast operations)
FAQ
What is CVE-2022-48726?
CVE-2022-48726 is a use-after-free vulnerability in the Linux kernel's RDMA UCMA (Unreliable Connection Management Agent) multicast implementation that occurs when multiple threads concurrently manage multicast group membership without proper synchronization. An attacker with local access can trigger memory corruption leading to denial of service or potential privilege escalation.
Is CVE-2022-48726 being actively exploited?
No, CVE-2022-48726 is not listed in the CISA KEV catalog and no public exploits are known to be in active use. However, the local attack surface and severity score (7.8) warrant prompt patching.
What versions of Kernel are affected by CVE-2022-48726?
Linux kernel versions 5.16.0 through 5.16.7 are vulnerable. Version 5.16.8 and all later releases include the fix.
How do I check if my server is vulnerable to CVE-2022-48726?
Run `uname -r` and check if the kernel version is between 5.16.0 and 5.16.7. If it falls in this range and RDMA is enabled (check with `lsmod | grep rdma_ucm`), your system is vulnerable.
Does Defensia detect CVE-2022-48726?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-48726 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2923948ffe0835f7114e948b35bcc42bc9b3baa1
- https://git.kernel.org/stable/c/36e8169ec973359f671f9ec7213547059cae972e
- https://git.kernel.org/stable/c/75c610212b9f1756b9384911d3a2c347eee8031c
- https://git.kernel.org/stable/c/ee2477e8ccd3d978eeac0dc5a981b286d9bb7b0a
- https://git.kernel.org/stable/c/2923948ffe0835f7114e948b35bcc42bc9b3baa1
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48726. Free for 1 server.
Get started free