# CVE-2025-38199: wifi: ath12k: Fix memory leak due to multiple rx_stats allocation

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:21.227Z
- Modified: 2026-11-05T21:18:20.213Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from d889913205cf7ebda905b1e62c5867ed4e39f6c2 before 2c4b122c75581331177686f68a08981371147d37; from d889913205cf7ebda905b1e62c5867ed4e39f6c2 before 232f962ae5fca98912a719e64b4964a5aec7c99b; from d889913205cf7ebda905b1e62c5867ed4e39f6c2 before c426497fa2055c8005196922e7d29c41d7e0948a; 6.3 (not affected: before 6.3; from 6.12.114 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.3 before 6.15.4

## References

- <https://git.kernel.org/stable/c/2c4b122c75581331177686f68a08981371147d37>
- <https://git.kernel.org/stable/c/232f962ae5fca98912a719e64b4964a5aec7c99b> (patch)
- <https://git.kernel.org/stable/c/c426497fa2055c8005196922e7d29c41d7e0948a> (patch)

## Sources

- CVE List: [CVE-2025-38199](https://www.cve.org/CVERecord?id=CVE-2025-38199), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38199](https://nvd.nist.gov/vuln/detail/CVE-2025-38199), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38199 · Whole record: https://cve.day/CVE-2025-38199.json · Rebuilt by cve.day 2026-11-25T22:59:00.638Z
