CVE-2025-38116

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38116
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38116.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-38116
Downstream
Published
2025-07-03T08:35:24Z
Modified
2025-10-16T00:42:06.494829Z
Summary
wifi: ath12k: fix uaf in ath12k_core_init()
Details

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

wifi: ath12k: fix uaf in ath12kcoreinit()

When the execution of ath12kcorehwgroupassign() or ath12kcorehwgroupcreate() 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 ath12kcorepanicnotifierunregister() in failure cases.

Call trace: notifierchainregister+0x4c/0x1f0 (P) atomicnotifierchainregister+0x38/0x68 ath12kcoreinit+0x50/0x4e8 [ath12k] ath12kpciprobe+0x5f8/0xc28 [ath12k] pcideviceprobe+0xbc/0x1a8 reallyprobe+0xc8/0x3a0 _driverprobedevice+0x84/0x1b0 driverprobedevice+0x44/0x130 _driverattach+0xcc/0x208 busforeachdev+0x84/0x100 driverattach+0x2c/0x40 busadddriver+0x130/0x260 driverregister+0x70/0x138 _pciregisterdriver+0x68/0x80 ath12kpciinit+0x30/0x68 [ath12k] ath12kinit+0x28/0x78 [ath12k]

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPLV1.0V2.0_SILICONZ-3

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6f245ea0ec6c29b90c8fa4fdf6e178c646125d7e
Fixed
65e1b3404c211dcfaea02698539cdcd26647130f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6f245ea0ec6c29b90c8fa4fdf6e178c646125d7e
Fixed
f3fe49dbddd73f0155a8935af47cb63693069dbe

Affected versions

v6.*

v6.12
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.15.1
v6.15.2

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.15.3