# CVE-2025-38116: wifi: ath12k: fix uaf in ath12k_core_init()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-03T08:35:24.413Z
- Modified: 2026-08-05T11:59:40.578Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: ath12k: fix uaf in ath12k_core_init()

When the execution of ath12k_core_hw_group_assign() or
ath12k_core_hw_group_create() fails, the registered notifier chain is not
unregistered properly. Its memory is freed after rmmod, which may trigger
to a use-after-free (UAF) issue if there is a subsequent access to this
notifier chain.

Fixes the issue by calling ath12k_core_panic_notifier_unregister() in
failure cases.

Call trace:
 notifier_chain_register+0x4c/0x1f0 (P)
 atomic_notifier_chain_register+0x38/0x68
 ath12k_core_init+0x50/0x4e8 [ath12k]
 ath12k_pci_probe+0x5f8/0xc28 [ath12k]
 pci_device_probe+0xbc/0x1a8
 really_probe+0xc8/0x3a0
 __driver_probe_device+0x84/0x1b0
 driver_probe_device+0x44/0x130
 __driver_attach+0xcc/0x208
 bus_for_each_dev+0x84/0x100
 driver_attach+0x2c/0x40
 bus_add_driver+0x130/0x260
 driver_register+0x70/0x138
 __pci_register_driver+0x68/0x80
 ath12k_pci_init+0x30/0x68 [ath12k]
 ath12k_init+0x28/0x78 [ath12k]

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 6f245ea0ec6c29b90c8fa4fdf6e178c646125d7e before 65e1b3404c211dcfaea02698539cdcd26647130f; from 6f245ea0ec6c29b90c8fa4fdf6e178c646125d7e before f3fe49dbddd73f0155a8935af47cb63693069dbe; 6.14 (not affected: before 6.14; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.14 before 6.15.3; 6.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/65e1b3404c211dcfaea02698539cdcd26647130f> (patch)
- <https://git.kernel.org/stable/c/f3fe49dbddd73f0155a8935af47cb63693069dbe> (patch)

## Sources

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

---

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