CVE-2024-57995

wifi: ath12k: fix read pointer after free in ath12k_mac_assign_vif_to_vdev()

State
Published
Severity
8.8 High
Published
Feb 27, 2025
Updated
Aug 5, 2026
Reserved
Feb 27, 2025

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • b5068bc9180d06a5ac242b0f9263047c14f86211 to before 57100b87c77818cb0d582a92e5cb32fff85c757dAffected
  • b5068bc9180d06a5ac242b0f9263047c14f86211 to before f3a95a312419e4f1e992525917da9dbcd247038fAffected
  • b5068bc9180d06a5ac242b0f9263047c14f86211 to before 5a10971c7645a95f5d5dc23c26fbac4bf61801d0Affected
LinuxLinux
  • 6.10Affected
  • before 6.10Not affected
  • 6.12.57 through 6.12.*Not affected
  • 6.13.2 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.