Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: fix memory leak in ath12k_wifi7_dp_rx_h_verify_tkip_mic() In ath12k_wifi7_dp_rx_h_verify_tkip_mic(), the call to ath12k_dp_rx_check_nwifi_hdr_len_valid() may return false when the NWIFI header length is invalid, causing the function to abort early with -EINVAL. When this happens, the error propagates to ath12k_wifi7_dp_rx_h_defrag(), which clears first_frag by setting it to NULL. As a result, the corresponding MSDU is no longer referenced by the defragmentation path and is never freed. This leads to a memory leak for the affected MSDU on this error path. Proper cleanup is required to ensure the MSDU is released when header validation fails during TKIP MIC verification. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 7f1d986da5c6abb75ffe4d0d325fc9b341c41a1c before d960cd5dbcc6a01f49cc304b724f6b18a63a172d; affected 3abe15e756481c45f6acba3d476cb3ca4afc3b61 before 779ab501dc8f1148b3f10740a68335741bdc5ffe; affected 9a0dddfb30f120db3851627935851d262e4e7acb before 55c6f05b667726d2da5fd011d646fb48ce5b6b9c; affected 9a0dddfb30f120db3851627935851d262e4e7acb before 5187a92099778501f21af76ed6c8415d128e7298; affected 9a0dddfb30f120db3851627935851d262e4e7acb before 98d4f92ab6a1af2ea2ab590d7e2801b203110981; affected 6ee653194ddb83674913fd2727b8ecfae0597ade; affected 50be1fb76556e80af9f5da80f28168b6c71bce58; affected 6.6.88 before 6.6.160; affected 6.12.24 before 6.12.114; affected 6.13.12 before 6.14; affected 6.14.3 before 6.15 |
| Linux / Linux | affected 6.15; unaffected 0 before 6.15; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.57 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/d960cd5dbcc6a01f49cc304b724f6b18a63a172d
- https://git.kernel.org/stable/c/779ab501dc8f1148b3f10740a68335741bdc5ffe
- https://git.kernel.org/stable/c/55c6f05b667726d2da5fd011d646fb48ce5b6b9c
- https://git.kernel.org/stable/c/5187a92099778501f21af76ed6c8415d128e7298
- https://git.kernel.org/stable/c/98d4f92ab6a1af2ea2ab590d7e2801b203110981