CVE-2025-39991: wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()
If ab->fw.m3_data points to data, then fw pointer remains null. Further, if m3_mem is not allocated, then fw is dereferenced to be passed to ath11k_err function.
Replace fw->size by m3_len.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
The Linux kernel CVE team has assigned CVE-2025-39991 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit 7db88b962f06a52af5e9a32971012e8f3427cec0 and fixed in 6.12.51 with commit 1f52119809b76d43759fc47da1cf708690b740a1 Issue introduced in 6.7 with commit 7db88b962f06a52af5e9a32971012e8f3427cec0 and fixed in 6.16.11 with commit 888830b2cbc035838bebefe94502976da94332a5 Issue introduced in 6.7 with commit 7db88b962f06a52af5e9a32971012e8f3427cec0 and fixed in 6.17.1 with commit 500fcc31e488d798937a23dbb1f62db46820c5b2 Issue introduced in 6.7 with commit 7db88b962f06a52af5e9a32971012e8f3427cec0 and fixed in 6.18-rc1 with commit 3fd2ef2ae2b5c955584a3bee8e83ae7d7a98f782
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-39991
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/wireless/ath/ath11k/qmi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/1f52119809b76d43759fc47da1cf708690b740a1 https://git.kernel.org/stable/c/888830b2cbc035838bebefe94502976da94332a5 https://git.kernel.org/stable/c/500fcc31e488d798937a23dbb1f62db46820c5b2 https://git.kernel.org/stable/c/3fd2ef2ae2b5c955584a3bee8e83ae7d7a98f782