CVE-2024-38539·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: RDMA/cma: Fix kmemleak in rdma_core observed during blktests nvme/rdma use siw When running blktests nvme/rdma, the following kmemleak issue will appear. kmemleak: Kernel memory leak detector initialized (mempool available:36041) kmemleak: Automatic memory scanning thread started kmemleak: 2 new suspected memory leaks (see /sys/kernel/debug/kmemleak) kmemleak: 8 new suspected memory leaks (see /sys/kernel/debug/kmemleak) kmemleak: 17 new suspected memory leaks (see /sys/kernel/debug/kmemleak) kmemleak: 4 new suspected memory leaks (see /sys/kernel/debug/kmemleak) unreferenced object 0xffff88855da53400 (size 192): comm "rdma", pid 10630, jiffies 4296575922 hex dump (first 32 bytes): 37 00 00 00 00 00 00 00 c0 ff ff ff 1f 00 00 00 7............... 10 34 a5 5d 85 88 ff ff 10 34 a5 5d 85 88 ff ff .4.].....4.].... backtrace (crc 47f66721): [<ffffffff911251bd>] kmalloc_trace+0x30d/0x3b0 [<ffffffffc2640ff7>] alloc_gid_entry+0x47/0x380 [ib_core] [<ffffffffc2642206>] add_modify_gid+0x166/0x930 [ib_core] [<ffffffffc2643468>] ib_cache_update.part.0+0x6d8/0x910 [ib_core] [<ffffffffc2644e1a>] ib_cache_setup_one+0x24a/0x350 [ib_core] [<ffffffffc263949e>] ib_register_device+0x9e/0x3a0 [ib_core] [<ffffffffc2a3d389>] 0xffffffffc2a3d389 [<ffffffffc2688cd8>] nldev_newlink+0x2b8/0x520 [ib_core] [<ffffffffc2645fe3>] rdma_nl_rcv_msg+0x2c3/0x520 [ib_core] [<ffffffffc264648c>] rdma_nl_rcv_skb.constprop.0.isra.0+0x23c/0x3a0 [ib_core] [<ffffffff9270e7b5>] netlink_unicast+0x445/0x710 [<ffffffff9270f1f1>] netlink_sendmsg+0x761/0xc40 [<ffffffff9249db29>] __sys_sendto+0x3a9/0x420 [<ffffffff9249dc8c>] __x64_sys_sendto+0xdc/0x1b0 [<ffffffff92db0ad3>] do_syscall_64+0x93/0x180 [<ffffffff92e00126>] entry_SYSCALL_64_after_hwframe+0x71/0x79 The root cause: rdma_put_gid_attr is not called when sgid_attr is set to ERR_PTR(-ENODEV).
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.9.3
- Published
- 2024-06-19
Affected versions
From: 6.9
Until: 6.9.3
Fixed in: 6.9.3
How to fix this CVE
Update your Linux kernel to version 6.9.3 or later to resolve a memory leak in the RDMA/CMA subsystem that occurs during NVMe-RDMA operations. The vulnerability causes unreferenced kernel memory allocations that are never freed, potentially leading to memory exhaustion over time. Apply the update immediately if you are running kernel versions 6.9 through 6.9.2 and use RDMA-based storage protocols.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r | grep -E '^6\.9\.[0-2]' to identify if you are running affected versions (6.9.0 to 6.9.2)
- Verify RDMA/CMA modules are loaded: lsmod | grep -i rdma to confirm the vulnerable component is active
- Monitor memory leaks during NVMe-RDMA operations: cat /sys/kernel/debug/kmemleak | grep -i 'rdma\|gid' to detect unreferenced memory allocations
- After patching, confirm kernel version: uname -r should show 6.9.3 or later, then restart and monitor /sys/kernel/debug/kmemleak for new leaks
FAQ
What is CVE-2024-38539?
CVE-2024-38539 is a kernel memory leak in the RDMA Connection Manager (CMA) subsystem where GID attribute references are not properly released when certain error conditions occur, causing persistent memory waste in systems using NVMe-RDMA storage.
Is CVE-2024-38539 being actively exploited?
No, this vulnerability is not actively exploited in the wild and is not tracked by CISA as a known exploited vulnerability. It is a stability issue rather than a security breach.
What versions of Kernel are affected by CVE-2024-38539?
Linux kernel versions 6.9.0 through 6.9.2 are affected. The vulnerability was fixed in kernel 6.9.3.
How do I check if my server is vulnerable to CVE-2024-38539?
Run 'uname -r' and check if the output matches 6.9.0, 6.9.1, or 6.9.2. If it does and you use RDMA/NVMe storage, your system is vulnerable.
Does Defensia detect CVE-2024-38539?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-38539 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3eb127dc408bf7959a4920d04d16ce10e863686a
- https://git.kernel.org/stable/c/6564fc1818404254d1c9f7d75b403b4941516d26
- https://git.kernel.org/stable/c/9c0731832d3b7420cbadba6a7f334363bc8dfb15
- https://git.kernel.org/stable/c/b3a7fb93afd888793ef226e9665fbda98a95c48e
- https://git.kernel.org/stable/c/3eb127dc408bf7959a4920d04d16ce10e863686a
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38539. Free for 1 server.
Get started free