# CVE-2024-57995: wifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vdev()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2025-02-27T02:07:16.163Z
- Modified: 2026-08-05T11:47:14.855Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from b5068bc9180d06a5ac242b0f9263047c14f86211 before 57100b87c77818cb0d582a92e5cb32fff85c757d; from b5068bc9180d06a5ac242b0f9263047c14f86211 before f3a95a312419e4f1e992525917da9dbcd247038f; from b5068bc9180d06a5ac242b0f9263047c14f86211 before 5a10971c7645a95f5d5dc23c26fbac4bf61801d0; 6.10 (not affected: before 6.10; from 6.12.57 up to 6.12.*; from 6.13.2 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.10 before 6.13.2

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/57100b87c77818cb0d582a92e5cb32fff85c757d>
- <https://git.kernel.org/stable/c/f3a95a312419e4f1e992525917da9dbcd247038f> (mailing-list, patch)
- <https://git.kernel.org/stable/c/5a10971c7645a95f5d5dc23c26fbac4bf61801d0> (mailing-list, patch)

## Sources

- CVE List: [CVE-2024-57995](https://www.cve.org/CVERecord?id=CVE-2024-57995), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-57995](https://nvd.nist.gov/vuln/detail/CVE-2024-57995), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-57995 · Whole record: https://cve.day/CVE-2024-57995.json · Rebuilt by cve.day 2026-11-25T22:58:52.092Z
