# CVE-2026-31582: hwmon: (powerz) Fix use-after-free on USB disconnect

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-04-24T14:42:12.257Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< c78e1d4e48f23792adaa7c94251e22b0d9700a39; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 9e1b798257f96d2e2a2639830eb71add545ce749; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 7003ae4810ca83f0ddca85b768500e313c4b998c; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4
- Anyone running Linux 6.7

## Description

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

hwmon: (powerz) Fix use-after-free on USB disconnect

After powerz\_disconnect() frees the URB and releases the mutex, a
subsequent powerz\_read() call can acquire the mutex and call
powerz\_read\_data(), which dereferences the freed URB pointer.

Fix by:
 - Setting priv-\>urb to NULL in powerz\_disconnect() so that
   powerz\_read\_data() can detect the disconnected state.
 - Adding a !priv-\>urb check at the start of powerz\_read\_data()
   to return -ENODEV on a disconnected device.
 - Moving usb\_set\_intfdata() before hwmon registration so the
   disconnect handler can always find the priv pointer.

## Affected and fixed versions

- Linux: \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< c78e1d4e48f23792adaa7c94251e22b0d9700a39; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 9e1b798257f96d2e2a2639830eb71add545ce749; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 7003ae4810ca83f0ddca85b768500e313c4b998c; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4 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-31582. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31582.md
Affected: Linux >= 4381a36abdf1c5c0323c1c51f869dc000115eb20, < c78e1d4e48f23792adaa7c94251e22b0d9700a39; >= 4381a36abdf1c5c0323c1c51f869dc000115eb20, < 9e1b798257f96d2e2a2639830eb71add545ce749; >= 4381a36abdf1c5c0323c1c51f869dc000115eb20, < 7003ae4810ca83f0ddca85b768500e313c4b998c; >= 4381a36abdf1c5c0323c1c5…
Fixed in: Linux 9e1b798257f96d2e2a2639830eb71add545ce749, Linux 7003ae4810ca83f0ddca85b768500e313c4b998c, Linux 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4, Linux 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4

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-31582 being exploited?

There is no confirmed exploitation: CVE-2026-31582 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-28).

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

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< c78e1d4e48f23792adaa7c94251e22b0d9700a39; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 9e1b798257f96d2e2a2639830eb71add545ce749; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 7003ae4810ca83f0ddca85b768500e313c4b998c; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4; \>= 4381a36abdf1c5c0323c1c51f869dc000115eb20, \< 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4; Linux 6.7.

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

Yes. Fixed in Linux 9e1b798257f96d2e2a2639830eb71add545ce749, Linux 7003ae4810ca83f0ddca85b768500e313c4b998c, Linux 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4, Linux 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4. Upgrade Linux to 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4 or later.

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

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

- patch: <https://git.kernel.org/stable/c/c78e1d4e48f23792adaa7c94251e22b0d9700a39>
- patch: <https://git.kernel.org/stable/c/9e1b798257f96d2e2a2639830eb71add545ce749>
- patch: <https://git.kernel.org/stable/c/7003ae4810ca83f0ddca85b768500e313c4b998c>
- patch: <https://git.kernel.org/stable/c/61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4>
- patch: <https://git.kernel.org/stable/c/08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4>

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

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