wifi: ath12k: Avoid memory leak while enabling statistics
In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: Avoid memory leak while enabling statistics Driver uses monitor destination rings for extended statistics mode and standalone monitor mode. In extended statistics mode, TLVs are parsed from the buffer received from the monitor destination ring and assigned to the ppdu_info structure to update per-packet statistics. In standalone monitor mode, along with per-packet statistics, the packet data (payload) is captured, and the driver updates per MSDU to mac80211. When the AP interface is enabled, only extended statistics mode is activated. As part of enabling monitor rings for collecting statistics, the driver subscribes to HAL_RX_MPDU_START TLV in the filter configuration. This TLV is received from the monitor destination ring, and kzalloc for the mon_mpdu object occurs, which is not freed, leading to a memory leak. The kzalloc for the mon_mpdu object is only required while enabling the standalone monitor interface. This causes a memory leak while enabling extended statistics mode in the driver. Fix this memory leak by removing the kzalloc for the mon_mpdu object in the HAL_RX_MPDU_START TLV handling. Additionally, remove the standalone monitor mode handlings in the HAL_MON_BUF_ADDR and HAL_RX_MSDU_END TLVs. These TLV tags will be handled properly when enabling standalone monitor mode in the future. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI W
CVE-2025-37743
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2025-37743
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "d889913205cf7ebda905b1e62c5867ed4e39f6c2",
"lessThan": "0554373bc9acccfbbc53a7fc5f94e8227a2f2959",
"versionType": "git"
},
{
"status": "affected",
"version": "d889913205cf7ebda905b1e62c5867ed4e39f6c2",
"lessThan": "8319cf3c0f2ed1f1d4c256c0bf605833bc45dbbb",
"versionType": "git"
},
{
"status": "affected",
"version": "d889913205cf7ebda905b1e62c5867ed4e39f6c2",
"lessThan": "286bab0fc7b9db728dab8c63cadf6be9b3facf8c",
"versionType": "git"
},
{
"status": "affected",
"version": "d889913205cf7ebda905b1e62c5867ed4e39f6c2",
"lessThan": "ecfc131389923405be8e7a6f4408fd9321e4d19b",
"versionType": "git"
}
],
"programFiles": [
"drivers/net/wireless/ath/ath12k/dp_mon.c",
"drivers/net/wireless/ath/ath12k/hal_rx.h"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.3"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.3",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.14.3",
"versionType": "semver",
"lessThanOrEqual": "6.14.*"
},
{
"status": "unaffected",
"version": "6.15",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/net/wireless/ath/ath12k/dp_mon.c",
"drivers/net/wireless/ath/ath12k/hal_rx.h"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2025-37743
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #45966 · Revision 1
- Added to Heist Feed
- Publisher date