UBUNTU-CVE-2026-68191: Null Pointer Dereference
In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: fix NULL pointer dereference in rhash table destroy When unbinding the ath12k driver, kernel NULL pointer dereferences occur in irqworksync() called from rhashtabledestroy(). Two hash tables are affected: 1. ath12klinksta hash table in ath12kbase 2. ath12kdplinkpeer hash table in ath12kdp The issue happens because the destroy functions are called unconditionally in cleanup paths, but the hash tables are only initialized late in their respective init functions. If the device was never fully started or if the init functions failed before initializing the hash tables, the pointers will be NULL. The issues are always reproducible from a VM because the MSI addressing initialization is failing. Call trace for ath12klinkstarhashtbldestroy: RIP: irqworksync+0x1e/0x70 rhashtabledestroy+0x12/0x60 ath12klinkstarhashtbldestroy+0x19/0x40 [ath12k] ath12kcorestop+0xe/0x80 [ath12k] ath12kcorehwgroupcleanup+0x6b/0xb0 [ath12k] ath12kpciremove+0x60/0x110 [ath12k] Call trace for ath12kdplinkpeerrhashtbldestroy: RIP: irqworksync+0x1e/0x70 rhashtabledestroy+0x12/0x60 ath12kdplinkpeerrhashtbldestroy+0x29/0x50 [ath12k] ath12kdpcmndevicedeinit+0x21/0x140 [ath12k] ath12kcorehwgroupcleanup+0x6b/0xb0 [ath12k] ath12kpciremove+0x60/0x110 [ath12k] Fix this by adding NULL checks before calling rhashtabledestroy() in both destroy functions. The NULL check approach was chosen because the rhashtable pointer serves as the initialization state indicator. The init can fail at various points, leaving some components uninitialized. Checking the pointer directly is simpler than adding separate state flags that would need synchronization.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-aws-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1014.14~24.04.1 - Upgrade
Upgrade
ubuntu/linux-azure-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17~24.04.1 - Upgrade
Upgrade
ubuntu/linux-azure-fde-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1016.16~24.04.1 - Upgrade
Upgrade
ubuntu/linux-gcp-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1014.14~24.04.1 - Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-38.38~24.04.4 - Upgrade
Upgrade
ubuntu/linux-nvidia-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1024.25~24.04.1 - Upgrade
Upgrade
ubuntu/linux-oracle-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1013.13~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-38.38.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-38.38 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1014.14 - Upgrade
Upgrade
ubuntu/linux-azureto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-azure-fdeto a version that resolves this vulnerability.Fixed in 7.0.0-1016.16 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1014.14 - Upgrade
Upgrade
ubuntu/linux-gketo a version that resolves this vulnerability.Fixed in 7.0.0-1008.9 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1015.15 - Upgrade
Upgrade
ubuntu/linux-nvidia-bosto a version that resolves this vulnerability.Fixed in 7.0.0-2022.23 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1015.15 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1013.13 - Upgrade
Upgrade
ubuntu/linux-realtimeto a version that resolves this vulnerability.Fixed in 7.0.0-38.38.1 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-38.38.1 - Compensating control
In the ath12k driver, add NULL-pointer checks before calling rhashtable_destroy() in both ath12k_link_sta_rhash_tbl_destroy() and ath12k_dp_link_peer_rhash_tbl_destroy().
Event History
Frequently Asked Questions
When can this issue be triggered?
It occurs during ath12k driver unbinding or cleanup when either affected hash table was never initialized. This can happen if the device never fully started or if initialization failed before the hash tables were created.
What environments are known to reproduce the problem?
The issue is described as always reproducible in a VM because MSI addressing initialization fails there. The resulting cleanup path can dereference a NULL pointer while destroying ath12k hash tables.
What is the practical impact?
The described impact is a kernel NULL pointer dereference during ath12k driver removal or cleanup, with call traces involving irq_work_sync() and rhashtable_destroy().
Which ath12k data structures are involved?
The affected structures are the ath12k_link_sta hash table in ath12k_base and the ath12k_dp_link_peer hash table in ath12k_dp.