CVE-2026-139612: wifi: ath12k: fix stale tail_msdu pointer returned from mpdu_pop
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: fix stale tailmsdu pointer returned from mpdupop
ath12kwifi7dprxmonmpdupop() assigns tailmsdu from the loop cursor msdu at function exit. That cursor reflects the state of the last msdulist entry processed, not the end of the accumulated MSDU chain: on nextmsdu paths (invalid skb, dropmpdu, first-MSDU rxdesc invalid) it is set to NULL, and on the setpktlen failure path it becomes a dangling pointer to a freed skb. When these occur on the final iteration, callers see headmsdu populated with a valid chain while tailmsdu is NULL or points to freed memory.
The chain end is already tracked by the local variable last, which is updated only after each MSDU has been validated and linked. Use it as the source for tailmsdu so headmsdu and tailmsdu are either both NULL or both point into the same live chain.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPLV1.0V2.0SILICONZUPSTREAM-3
Affected Software
Event History
Frequently Asked Questions
Does the available information identify affected Linux kernel versions?
No specific affected or fixed kernel versions are provided. The available references are three stable kernel commits that can be compared against the kernel source in use.
Which hardware platform was used to test the fix?
The fix was tested on WCN7850 hardware revision 2.0 using PCI WLAN firmware WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3.