CVE-2026-142930: wifi: ath12k: fix stale skb pointers after aligned TX payload shift
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: fix stale skb pointers after aligned TX payload shift
ath12kwifi7dptx() caches hdr, eth, and skbcb from the skb before calling ath12kdptxalignpayload(). That function may shift skb->data in place (when headroom or tailroom is sufficient) or reallocate the buffer entirely via skbreallocheadroom(), freeing the original skb. In either case hdr, eth, and skbcb are left pointing into stale memory.
After alignment, only hdr is refreshed, leaving eth and skbcb stale. skbcb is written immediately after (storing DMA addresses), and eth is re-read on every TCL ring retry via the tclringsel goto, so both accesses are use-after-free or stale-pointer bugs depending on which alignment path was taken.
Refresh eth (conditionally, to preserve the encap-mode distinction) and skbcb alongside hdr after ath12kdptxalignpayload() returns, so all three point into the live skb for all subsequent accesses.
Issue found during code review, compile tested only.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.11 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In ath12k_wifi7_dp_tx(), after ath12k_dp_tx_align_payload() returns, refresh hdr and skb_cb from the live skb and refresh eth conditionally to preserve the encap-mode distinction. Re-read these pointers on every TCL ring retry via the tcl_ring_sel goto.
Event History
Frequently Asked Questions
Which systems are in scope for this issue?
The issue is in the Linux kernel's ath12k Wi-Fi 7 transmit path. It affects processing that invokes payload alignment during transmission.
What conditions lead to stale pointer use?
The problem occurs after payload alignment changes skb data in place or reallocates the skb buffer. Subsequent writes through skb_cb and reads through eth can then use stale memory unless those pointers are refreshed.
How was the fix validated?
The issue was found during code review, and the provided information states that the fix was compile tested only.