CVE-2024-26872·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: RDMA/srpt: Do not register event handler until srpt device is fully setup Upon rare occasions, KASAN reports a use-after-free Write in srpt_refresh_port(). This seems to be because an event handler is registered before the srpt device is fully setup and a race condition upon error may leave a partially setup event handler in place. Instead, only register the event handler after srpt device initialization is complete.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.2
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2024-26872 scores 7 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.8
Until: 6.8.2
Fixed in: 6.8.2
How to fix this CVE
Update the Linux kernel to version 6.8.2 or later to resolve a use-after-free vulnerability in the RDMA/srpt subsystem. The vulnerability occurs due to premature event handler registration before device initialization completes, creating a race condition window. Apply the kernel update immediately and reboot your system to mitigate this high-severity flaw.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version with `uname -r` and verify if it falls within 6.8.0 to 6.8.2
- Step 2: Verify RDMA/srpt module is loaded by running `lsmod | grep srpt` and `lsmod | grep rdma`
- Step 3: Search kernel logs for use-after-free or srpt-related errors with `sudo dmesg | grep -i 'srpt\|use-after-free\|kasan'`
- Step 4: After patching, confirm kernel version with `uname -r` returns 6.8.2 or later, and reload modules with `sudo modprobe -r ib_srpt && sudo modprobe ib_srpt`
FAQ
What is CVE-2024-26872?
CVE-2024-26872 is a use-after-free memory vulnerability in the Linux kernel's RDMA/srpt (SRP Target) subsystem where an event handler is registered before device initialization completes, allowing a race condition to leave partially initialized state in memory.
Is CVE-2024-26872 being actively exploited?
No, CVE-2024-26872 is not listed on the CISA KEV catalog and no public exploits are currently available. This is primarily a kernel stability issue affecting RDMA systems.
What versions of Kernel are affected by CVE-2024-26872?
Linux kernel versions 6.8.0 through 6.8.2 are affected. The vulnerability was resolved in kernel version 6.8.2 and later.
How do I check if my server is vulnerable to CVE-2024-26872?
Run `uname -r` to check your kernel version. If it shows 6.8.0, 6.8.1, or 6.8.2, and your system has RDMA/srpt modules enabled (`lsmod | grep srpt`), your system is vulnerable.
Does Defensia detect CVE-2024-26872?
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-26872 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/6413e78086caf7bf15639923740da0d91fdfd090
- https://git.kernel.org/stable/c/7104a00fa37ae898a827381f1161fa3286c8b346
- https://git.kernel.org/stable/c/85570b91e4820a0db9d9432098778cafafa7d217
- https://git.kernel.org/stable/c/bdd895e0190c464f54f84579e7535d80276f0fc5
- https://git.kernel.org/stable/c/c21a8870c98611e8f892511825c9607f1e2cd456
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-26872. Free for 1 server.
Get started free