[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025081626-CVE-2025-38541-39ec@gregkh>
Date: Sat, 16 Aug 2025 13:22:27 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-38541: wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()
devm_kasprintf() returns NULL on error. Currently, mt7925_thermal_init()
does not check for this case, which results in a NULL pointer
dereference.
Add NULL check after devm_kasprintf() to prevent this issue.
The Linux kernel CVE team has assigned CVE-2025-38541 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.9 with commit 396e41a74a88654f23e36c46d2995752c91654a5 and fixed in 6.12.39 with commit 1bbdf4213711bb6dc365e7628430a63dd3280794
Issue introduced in 6.9 with commit 396e41a74a88654f23e36c46d2995752c91654a5 and fixed in 6.15.7 with commit 2e99e9b34ece0b6d3e82cb757e9f60fa414da999
Issue introduced in 6.9 with commit 396e41a74a88654f23e36c46d2995752c91654a5 and fixed in 6.16 with commit 03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602
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-38541
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/mediatek/mt76/mt7925/init.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/1bbdf4213711bb6dc365e7628430a63dd3280794
https://git.kernel.org/stable/c/2e99e9b34ece0b6d3e82cb757e9f60fa414da999
https://git.kernel.org/stable/c/03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602
Powered by blists - more mailing lists