# CVE-2026-142940: wifi: mt76: mt7915: unregister thermal cooling device on hwmon failure

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:26:10.435Z
- **Modified:** 2026-12-03T04:18:35.510Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker could trigger a use-after-free in the Linux kernel's mt76 mt7915 Wi-Fi driver by causing a hwmon registration failure, since the thermal cooling device is left registered and references freed memory.

## Who should check

- Anyone running Linux \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< d90e83f92cf1cfc56f0e18866b64ee9b9b5f725b; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 413572102edabef045201ba7ef60e0d3a15ae0b9; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 6d42263899ef15506e097a52d0da19d280806e71; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 7d4bc3acbbc3307c4b67de8b2a526fa57a933dfc; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< b8286bc7fe520e7117e7b6e1a1fd4c0df439aa3a; dd879ab927a3714092600e41690afb90592483cc; 32ec365cdca6357dc30620565531ed7f3933bfa1; \>= 5.14.19, \< 5.15; \>= 5.15.3, \< 5.16
- Anyone running Linux 5.16

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: mt76: mt7915: unregister thermal cooling device on hwmon failure

mt7915\_thermal\_init() registered the thermal cooling device and its sysfs
link, then returned the hwmon registration error without undoing them.
The cooling device (not devm-managed) and the link then leaked, and its
callbacks referenced the freed phy. Unregister the cooling device before
returning the error.

## Affected and fixed versions

- Linux: \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< d90e83f92cf1cfc56f0e18866b64ee9b9b5f725b; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 413572102edabef045201ba7ef60e0d3a15ae0b9; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 6d42263899ef15506e097a52d0da19d280806e71; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 7d4bc3acbbc3307c4b67de8b2a526fa57a933dfc; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< b8286bc7fe520e7117e7b6e1a1fd4c0df439aa3a; dd879ab927a3714092600e41690afb90592483cc; 32ec365cdca6357dc30620565531ed7f3933bfa1; \>= 5.14.19, \< 5.15; \>= 5.15.3, \< 5.16 (cvelist)
- Linux: 5.16 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 5.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142940. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142940.md
Affected: Linux >= 0ae3ff5684514d72357240f1033a7494c51f93ed, < d90e83f92cf1cfc56f0e18866b64ee9b9b5f725b; >= 0ae3ff5684514d72357240f1033a7494c51f93ed, < 413572102edabef045201ba7ef60e0d3a15ae0b9; >= 0ae3ff5684514d72357240f1033a7494c51f93ed, < 6d42263899ef15506e097a52d0da19d280806e71; >= 0ae3ff5684514d72357240f…
Fixed in: Linux 413572102edabef045201ba7ef60e0d3a15ae0b9, Linux 6d42263899ef15506e097a52d0da19d280806e71, Linux 7d4bc3acbbc3307c4b67de8b2a526fa57a933dfc, Linux 5.15, Linux 5.16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142940 being exploited?

There is no confirmed exploitation: CVE-2026-142940 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142940?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142940?

Linux \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< d90e83f92cf1cfc56f0e18866b64ee9b9b5f725b; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 413572102edabef045201ba7ef60e0d3a15ae0b9; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 6d42263899ef15506e097a52d0da19d280806e71; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< 7d4bc3acbbc3307c4b67de8b2a526fa57a933dfc; \>= 0ae3ff5684514d72357240f1033a7494c51f93ed, \< b8286bc7fe520e7117e7b6e1a1fd4c0df439aa3a; dd879ab927a3714092600e41690afb90592483cc; 32ec365cdca6357dc30620565531ed7f3933bfa1; \>= 5.14.19, \< 5.15; \>= 5.15.3, \< 5.16; Linux 5.16.

### Is there a fix for CVE-2026-142940?

Yes. Fixed in Linux 413572102edabef045201ba7ef60e0d3a15ae0b9, Linux 6d42263899ef15506e097a52d0da19d280806e71, Linux 7d4bc3acbbc3307c4b67de8b2a526fa57a933dfc, Linux 5.15, Linux 5.16. Upgrade Linux to 5.16 or later.

### How do I check if I'm affected by CVE-2026-142940?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/d90e83f92cf1cfc56f0e18866b64ee9b9b5f725b>
- other: <https://git.kernel.org/stable/c/413572102edabef045201ba7ef60e0d3a15ae0b9>
- other: <https://git.kernel.org/stable/c/6d42263899ef15506e097a52d0da19d280806e71>
- other: <https://git.kernel.org/stable/c/7d4bc3acbbc3307c4b67de8b2a526fa57a933dfc>
- other: <https://git.kernel.org/stable/c/b8286bc7fe520e7117e7b6e1a1fd4c0df439aa3a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142940>

HTML: <https://flawdb.com/CVE-2026-142940> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142940>
