CVE-2026-74368: wifi: ath12k: fix memory leak in ath12k_wifi7_dp_rx_h_verify_tkip_mic()

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081502-CVE-2026-74368-6681@gregkh>
From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

The Linux kernel CVE team has assigned CVE-2026-74368 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.15 with commit 9a0dddfb30f120db3851627935851d262e4e7acb and fixed in 7.1.5 with commit 5187a92099778501f21af76ed6c8415d128e7298
	Issue introduced in 6.15 with commit 9a0dddfb30f120db3851627935851d262e4e7acb and fixed in 7.2-rc1 with commit 98d4f92ab6a1af2ea2ab590d7e2801b203110981
	Issue introduced in 6.6.88 with commit 7f1d986da5c6abb75ffe4d0d325fc9b341c41a1c
	Issue introduced in 6.12.24 with commit 3abe15e756481c45f6acba3d476cb3ca4afc3b61
	Issue introduced in 6.13.12 with commit 6ee653194ddb83674913fd2727b8ecfae0597ade
	Issue introduced in 6.14.3 with commit 50be1fb76556e80af9f5da80f28168b6c71bce58

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-74368
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/5187a92099778501f21af76ed6c8415d128e7298
	https://git.kernel.org/stable/c/98d4f92ab6a1af2ea2ab590d7e2801b203110981
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.