CVE-2025-38541 wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()
A missing NULL check in the mt7925 thermal initialization can cause a kernel crash, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38541?
CVE-2025-38541 is a medium-severity vulnerability in Linux kernel, published on 16 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2025-38541?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38541?
Apply the vendor's patch.
Is CVE-2025-38541 being exploited?
There is no known exploitation of CVE-2025-38541 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38541, DEBIAN-CVE-2025-38541, GHSA-vq2f-jgxp-899c, ROOT-OS-DEBIAN-13-CVE-2025-38541, UBUNTU-CVE-2025-38541.