CVE-2024-49852·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del() The kref_put() function will call nport->release if the refcount drops to zero. The nport->release release function is _efc_nport_free() which frees "nport". But then we dereference "nport" on the next line which is a use after free. Re-order these lines to avoid the use after free.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.2
- Published
- 2024-10-21
Affected versions
From: 6.11
Until: 6.11.2
Fixed in: 6.11.2
How to fix this CVE
CVE-2024-49852 is a use-after-free vulnerability in the Linux kernel's SCSI elx libefc driver that can lead to memory corruption and potential privilege escalation. Update your kernel to version 6.11.2 or later to resolve this issue. Systems running kernel versions 6.11 through 6.11.1 should be prioritized for patching.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version with: uname -r — versions 6.11 through 6.11.1 are vulnerable; 6.11.2+ are patched
- Verify if the libefc SCSI driver is loaded: lsmod | grep libefc — if empty, the component is not in use on this system
- Search kernel logs for SCSI errors related to nport operations: sudo dmesg | grep -i 'nport\|efc' — look for memory corruption or kernel panics
- Confirm the fix was applied by checking if your kernel version matches or exceeds 6.11.2: uname -r && cat /proc/version
FAQ
What is CVE-2024-49852?
CVE-2024-49852 is a use-after-free memory vulnerability in the Linux kernel's SCSI elx libefc driver. The efc_nport_vport_del() function improperly dereferences a pointer after freeing the underlying memory structure, potentially allowing memory corruption and privilege escalation.
Is CVE-2024-49852 being actively exploited?
No, CVE-2024-49852 is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the high CVSS score (7.8) indicates significant risk and should still be prioritized for patching.
What versions of Kernel are affected by CVE-2024-49852?
Linux kernel versions 6.11, 6.11.1, and 6.11.2 (prior to the fix) are vulnerable. Kernel version 6.11.2 and later include the remediation. Earlier kernel series (6.10 and below) are not affected.
How do I check if my server is vulnerable to CVE-2024-49852?
Run 'uname -r' to check your kernel version. If the output shows 6.11 or 6.11.1, your system is vulnerable. Then verify if libefc is loaded with 'lsmod | grep libefc' — vulnerability requires both the vulnerable kernel version AND active libefc driver usage.
Does Defensia detect CVE-2024-49852?
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-49852 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/16a570f07d870a285b0c0b0d1ca4dff79e8aa5ff
- https://git.kernel.org/stable/c/2e4b02fad094976763af08fec2c620f4f8edd9ae
- https://git.kernel.org/stable/c/7c2908985e4ae0ea1b526b3916de9e5351650908
- https://git.kernel.org/stable/c/98752fcd076a8cbc978016eae7125b4971be1eec
- https://git.kernel.org/stable/c/abc71e89170ed32ecf0a5a29f31aa711e143e941
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-49852. Free for 1 server.
Get started free