{"id":"CVE-2024-57995","summary":"wifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vdev()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vdev()\n\nIn ath12k_mac_assign_vif_to_vdev(), if arvif is created on a different\nradio, it gets deleted from that radio through a call to\nath12k_mac_unassign_link_vif(). This action frees the arvif pointer.\nSubsequently, there is a check involving arvif, which will result in a\nread-after-free scenario.\n\nFix this by moving this check after arvif is again assigned via call to\nath12k_mac_assign_link_vif().\n\nTested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1","modified":"2026-04-02T12:25:27.532758Z","published":"2025-02-27T02:07:16.163Z","related":["ALSA-2025:20095","ALSA-2025:20518","CGA-33h3-95h7-q876","SUSE-SU-2025:02254-1","SUSE-SU-2025:02307-1","SUSE-SU-2025:02333-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57995.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/57100b87c77818cb0d582a92e5cb32fff85c757d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a10971c7645a95f5d5dc23c26fbac4bf61801d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3a95a312419e4f1e992525917da9dbcd247038f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57995.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57995"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b5068bc9180d06a5ac242b0f9263047c14f86211"},{"fixed":"57100b87c77818cb0d582a92e5cb32fff85c757d"},{"fixed":"f3a95a312419e4f1e992525917da9dbcd247038f"},{"fixed":"5a10971c7645a95f5d5dc23c26fbac4bf61801d0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57995.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}