CVE Database›Document archive›CVE-2025-38116

CVE-2025-38116

kernel: wifi: ath12k: fix uaf in ath12k_core_init()

Loading…

Severity

Moderate

Red Hat Product Security

4.1

CVSS 3.1

Review impact separately from score.

Published · July 3, 2025

Updated · October 16, 2026

Description

A flaw was found in the Linux kernel's ath12k wireless driver. When device initialization fails, the driver does not properly unregister an internal notification handler before its memory is freed during module unloading. A local privileged user could exploit this use-after-free vulnerability upon subsequent access to the handler, leading to a Denial of Service (DoS) through a system crash.

Statement

The vulnerability is classified as a use-after-free in the ath12k_core_init() function. It occurs when the notifier chain is not properly unregistered upon initialization failure, potentially leading to kernel crashes upon later access. For the CVSS the Privileges Required (PR) metric is set to High, as exploitation requires the ability to load and unload kernel modules (e.g., insmod/rmmod), which is restricted to privileged users with CAP_SYS_MODULE or root access. The bug is relevant only for the latest version of Red Hat Enterprise Linux 9 (and newer), because in earlier versions the Linux kernel config option CONFIG_ATH12K was disabled.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, prevent module ath12k from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.

CVSS / CWE

CVSS 3.1 · 4.1
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H

CWE-416 · Use After Free