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

Status: published. Published: 2025-07-04. Updated: 2026-11-05.

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

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ d889913205cf7ebda905b1e62c5867ed4e39f6c2; < 2c4b122c75581331177686f68a08981371147d37 (affected, git); ≥ d889913205cf7ebda905b1e62c5867ed4e39f6c2; < 232f962ae5fca98912a719e64b4964a5aec7c99b (affected, git); ≥ d889913205cf7ebda905b1e62c5867ed4e39f6c2; < c426497fa2055c8005196922e7d29c41d7e0948a (affected, git). Source: CNA: Linux
- Linux / Linux: 6.3 (affected); ≥ 0; < 6.3 (unaffected, semver); ≥ 6.12.114; ≤ 6.12.* (unaffected, semver); ≥ 6.15.4; ≤ 6.15.* (unaffected, semver); ≥ 6.16; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.21% as of 2026-11-05; percentile 11.05%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/2c4b122c75581331177686f68a08981371147d37 (CNA: Linux)

- https://git.kernel.org/stable/c/232f962ae5fca98912a719e64b4964a5aec7c99b (CNA: Linux)

- https://git.kernel.org/stable/c/c426497fa2055c8005196922e7d29c41d7e0948a (CNA: Linux)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2025-38199; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2025-38199; retrieved 2026-11-05; source updated Not reported

Revision: 9e89db063782688fbde35aeaccbc13d1fd797ff5740cca037b21ef0999aab11e

Canonical: https://y2.dev/cve/CVE-2025-38199

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.