# CVE-2025-38541: wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-08-16T11:22:15.776Z
- Modified: 2026-06-17T09:17:04.490Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 396e41a74a88654f23e36c46d2995752c91654a5 before 1bbdf4213711bb6dc365e7628430a63dd3280794; from 396e41a74a88654f23e36c46d2995752c91654a5 before 2e99e9b34ece0b6d3e82cb757e9f60fa414da999; from 396e41a74a88654f23e36c46d2995752c91654a5 before 03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602; 6.9 (not affected: before 6.9; from 6.12.39 up to 6.12.*; from 6.15.7 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.9 before 6.12.39; from 6.13 before 6.15.7; 6.16

## References

- <https://git.kernel.org/stable/c/1bbdf4213711bb6dc365e7628430a63dd3280794> (patch)
- <https://git.kernel.org/stable/c/2e99e9b34ece0b6d3e82cb757e9f60fa414da999> (patch)
- <https://git.kernel.org/stable/c/03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602> (patch)

## Sources

- CVE List: [CVE-2025-38541](https://www.cve.org/CVERecord?id=CVE-2025-38541), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38541](https://nvd.nist.gov/vuln/detail/CVE-2025-38541), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38541 · Whole record: https://cve.day/CVE-2025-38541.json · Rebuilt by cve.day 2026-11-25T22:59:02.636Z
