CVE-2026-53113: wifi: ath11k: fix memory leaks in beacon template setup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: fix memory leaks in beacon template setup
The functions ath11k_mac_setup_bcn_tmpl_ema() and ath11k_mac_setup_bcn_tmpl_mbssid() allocate memory for beacon templates but fail to free it when parameter setup returns an error.
Since beacon templates must be released during normal execution, they must also be released in the error handling paths to prevent memory leaks.
Fix this by using unified exit paths with proper cleanup in the respective error paths.
Compile tested only. Issue found using a prototype static analysis tool and code review.
The Linux kernel CVE team has assigned CVE-2026-53113 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.5 with commit 335a92765d308dfe22826f5562cd4b4389b45e71 and fixed in 7.0.10 with commit 5d63aa38d5ca85206d9699ffdd616b58780dba07 Issue introduced in 6.5 with commit 335a92765d308dfe22826f5562cd4b4389b45e71 and fixed in 7.1 with commit ff49eba595df500e4ddccc593088c8a4ab5f2c27
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-53113
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/ath11k/mac.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/5d63aa38d5ca85206d9699ffdd616b58780dba07 https://git.kernel.org/stable/c/ff49eba595df500e4ddccc593088c8a4ab5f2c27