CVE-2024-57995: wifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vdev()
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: fix read pointer after free in ath12kmacassignviftovdev()
In ath12kmacassignviftovdev(), if arvif is created on a different radio, it gets deleted from that radio through a call to ath12kmacunassignlinkvif(). 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 ath12kmacassignlinkvif().
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPLSILICONZ-1
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Fix the read-after-free by moving the check involving arvif so it runs after arvif is again assigned via the call to ath12k_mac_assign_link_vif(), instead of before ath12k_mac_unassign_link_vif()/after arvif can be freed by deletion from the radio in ath12k_mac_unassign_link_vif().
Event History
Frequently Asked Questions
What is the severity of CVE-2024-57995?
The severity of CVE-2024-57995 is categorized as a high-risk vulnerability affecting the Linux kernel.
How do I fix CVE-2024-57995?
To fix CVE-2024-57995, update the Linux kernel to versions 6.10 to 6.13.2 or later where the vulnerability is patched.
What systems are affected by CVE-2024-57995?
CVE-2024-57995 affects various versions of the Linux kernel between versions 6.10 and 6.13.2.
What type of vulnerability is CVE-2024-57995?
CVE-2024-57995 is a memory safety vulnerability due to a read pointer being utilized after being freed.
Is CVE-2024-57995 exploitable in remote attacks?
CVE-2024-57995 may be exploitable through local attacks, potentially allowing a malicious actor to crash or compromise the kernel.