CVE-2024-57857·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Remove direct link to net_device Do not manage a per device direct link to net_device. Rely on associated ib_devices net_device management, not doubling the effort locally. A badly managed local link to net_device was causing a 'KASAN: slab-use-after-free' exception during siw_query_port() call.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.9
- Published
- 2025-01-15
Affected versions
From: 5.3
Until: 6.12.9
Fixed in: 6.12.9
How to fix this CVE
Update your Linux kernel to version 6.12.9 or later to resolve a memory management issue in the RDMA/siw (Software iWARP) subsystem. The vulnerability stems from improper handling of network device references, which can trigger use-after-free exceptions during port query operations. Kernel updates should be applied promptly, followed by a system reboot to activate the patched version.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your installed kernel version with: uname -r
- Step 2: Verify if RDMA/iWARP is in use by checking: lsmod | grep siw
- Step 3: Search system logs for KASAN errors related to siw_query_port: sudo grep -i 'kasan.*siw_query_port' /var/log/kern.log
- Step 4: After patching, confirm the new kernel is loaded: uname -r (should show version 6.12.9 or higher)
FAQ
What is CVE-2024-57857?
This is a kernel vulnerability in the RDMA/siw (Software iWARP) subsystem where improper network device reference management causes a use-after-free memory error. The flaw is triggered during siw_query_port() operations, potentially leading to kernel crashes or undefined behavior.
Is CVE-2024-57857 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog, and no public exploits are currently available. However, it should still be patched promptly due to its high severity rating.
What versions of Kernel are affected by CVE-2024-57857?
Linux kernel versions 5.3 through 6.12.8 are vulnerable. The fix was released in kernel 6.12.9 and subsequent versions.
How do I check if my server is vulnerable to CVE-2024-57857?
Run 'uname -r' to display your kernel version. If it shows a version between 5.3 and 6.12.8 (inclusive), your system is vulnerable. Additionally, run 'lsmod | grep siw' to confirm if the affected RDMA module is loaded.
Does Defensia detect CVE-2024-57857?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-57857 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-57857. Free for 1 server.
Get started free