CVE-2025-38541

wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()

MEDIUM
5.5
CVSS Score
Published: August 16, 2025 at 11:22 AM UTC
Updated: June 17, 2026 at 09:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.13 ≤ v < 6.15.76.9 ≤ v < 6.12.396.9 ≤ v < 6.15.76.9 ≤ v < 6.16396e41a74a88654f23e36c46d2995752c91654a56.16 rc16.16 rc26.16 rc36.16 rc46.16 rc56.9
Vendor states this is fixed in 03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602 (fixed)
Vendor states this is fixed in 1bbdf4213711bb6dc365e7628430a63dd3280794 (fixed)
Vendor states this is fixed in 2e99e9b34ece0b6d3e82cb757e9f60fa414da999 (fixed)
Vendor states this is fixed in 6.12.39 (unaffected)
Vendor states this is fixed in 6.15.7 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1bbdf4213711bb6dc365e7628430a63dd3280794
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2e99e9b34ece0b6d3e82cb757e9f60fa414da999

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card