CVE-2024-57995·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vdev() In ath12k_mac_assign_vif_to_vdev(), if arvif is created on a different radio, it gets deleted from that radio through a call to ath12k_mac_unassign_link_vif(). This action frees the arvif pointer. Subsequently, there is a check involving arvif, which will result in a read-after-free scenario. Fix this by moving this check after arvif is again assigned via call to ath12k_mac_assign_link_vif(). Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.2
- Published
- 2025-02-27
Affected versions
From: 6.10
Until: 6.13.2
Fixed in: 6.13.2
How to fix this CVE
Update your Linux kernel to version 6.13.2 or later to resolve this use-after-free vulnerability in the ath12k WiFi driver. This flaw affects multi-radio WiFi systems where virtual interfaces may be reassigned between radios, potentially causing kernel memory corruption. Apply the patch immediately on systems using affected kernel versions 6.10 through 6.13.1.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and verify if it falls within 6.10.x to 6.13.1 range
- Step 2: Confirm ath12k WiFi driver is loaded by running `lsmod | grep ath12k`
- Step 3: Check for kernel crashes or warnings related to ath12k in dmesg with `dmesg | grep -i 'ath12k\|use-after-free\|uaf'`
- Step 4: After applying patches, reboot and confirm new kernel version with `uname -r`, then verify ath12k driver still loads correctly with `dmesg | grep -i ath12k`
FAQ
What is CVE-2024-57995?
This is a use-after-free vulnerability in the Linux kernel's ath12k WiFi driver that occurs when virtual interfaces are migrated between different radio devices. The freed memory pointer is then dereferenced, potentially allowing kernel corruption or denial of service.
Is CVE-2024-57995 being actively exploited?
No, this vulnerability is not listed on the CISA KEV catalog and has no known public exploits. However, it should still be patched promptly as it affects kernel stability.
What versions of Kernel are affected by CVE-2024-57995?
Linux kernel versions 6.10 through 6.13.1 are vulnerable. Version 6.13.2 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-57995?
Run `uname -r` to see your kernel version. If it shows 6.10.x through 6.13.1 and `lsmod | grep ath12k` returns output, your system is vulnerable.
Does Defensia detect CVE-2024-57995?
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-57995 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-57995. Free for 1 server.
Get started free