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 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
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.57, 6.13.2
- CVEs
- CVE-2024-57995
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 03:44 UTC · Revision 1
Source evidence
wifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vdev()
core-osv · Original sourcePublished 27 Feb 2025, 02:07 UTC
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
osv:CVE-2024-57995
Kernel
Fixed versions: 6.12.57, 6.13.2
Complete source record
{
"id": "7290a2f543dc96d67f212a9a3c8f6f7127aae27a8e8fb8cccea7397df0d33b4c",
"url": "https://osv.dev/vulnerability/CVE-2024-57995",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "wifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vdev()",
"summary": "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",
"evidence": "osv:CVE-2024-57995",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.57",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-57995",
"aliases": [
"CVE-2024-57995"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.10.0"
},
{
"fixed": "6.12.57"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57995.json"
}
}
],
"modified": "2026-10-28T02:30:46.529063538Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/57100b87c77818cb0d582a92e5cb32fff85c757d",
"https://git.kernel.org/stable/c/5a10971c7645a95f5d5dc23c26fbac4bf61801d0",
"https://git.kernel.org/stable/c/f3a95a312419e4f1e992525917da9dbcd247038f",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57995.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-57995",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57995.json"
}
},
"related_cves": [
{
"value": "CVE-2024-57995",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514521,
"published_at": "2025-02-27T02:07:16.163+00:00"
}