Bug 2334421 (CVE-2024-53188) - CVE-2024-53188 kernel: wifi: ath12k: fix crash when unbinding
Summary: CVE-2024-53188 kernel: wifi: ath12k: fix crash when unbinding
Keywords:
Status: NEW
Alias: CVE-2024-53188
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-27 14:05 UTC by OSIDB Bzimport
Modified: 2024-12-28 09:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-27 14:05:53 UTC
In the Linux kernel, the following vulnerability has been resolved:

wifi: ath12k: fix crash when unbinding

If there is an error during some initialization related to firmware,
the function ath12k_dp_cc_cleanup is called to release resources.
However this is released again when the device is unbinded (ath12k_pci),
and we get:
BUG: kernel NULL pointer dereference, address: 0000000000000020
at RIP: 0010:ath12k_dp_cc_cleanup.part.0+0xb6/0x500 [ath12k]
Call Trace:
ath12k_dp_cc_cleanup
ath12k_dp_free
ath12k_core_deinit
ath12k_pci_remove
...

The issue is always reproducible from a VM because the MSI addressing
initialization is failing.

In order to fix the issue, just set to NULL the released structure in
ath12k_dp_cc_cleanup at the end.

Comment 1 Avinash Hanwate 2024-12-28 09:51:29 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122722-CVE-2024-53188-be4e@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.