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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-24 · Modified: 2026-06-14
- Aliases: UBUNTU-CVE-2026-31582, DEBIAN-CVE-2026-31582, CGA-7vjv-hfmr-rrxh, CGA-94xj-8v7j-6q2c, CGA-9mxg-j48c-qw6q, CGA-c74j-5h8p-h84v, CGA-cp9x-745q-hvcj, CGA-gc23-r9xm-458x, CGA-hq55-fjpq-4xj5, CGA-m7rv-46p4-qrc6, CGA-mgxp-8m8v-q7r5, CGA-pvrf-xp36-4v72
- Record: https://cvemate.com/vulnerability/CVE-2026-31582 · JSON: https://cvemate.com/vulnerability/CVE-2026-31582/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.13%, percentile 2.781%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 145)

- chainguard linux-aws-6.12 (Chainguard): \< 6.12.85-r0
- chainguard linux-aws-6.18 (Chainguard): \< 6.18.31-r0
- chainguard linux-azure-6.18 (Chainguard): \< 6.18.31-r0
- chainguard linux-gcp-6.12 (Chainguard): \< 6.12.85-r0
- chainguard linux-gcp-6.18 (Chainguard): \< 6.18.31-r0
- chainguard linux-qemu-6.12 (Chainguard): \< 6.12.85-r0
- chainguard linux-qemu-6.18 (Chainguard): \< 6.18.31-r0
- chainguard linux-qemu-6.18-bootc-boot-installed (Chainguard): \< 6.18.31-r0
- chainguard linux-vmware-6.12 (Chainguard): \< 6.12.85-r0
- chainguard linux-vmware-6.18 (Chainguard): \< 6.18.31-r0
- debian linux (Debian): \< 6.12.85-1 \| \< 6.19.14-1
- ubuntu linux (Ubuntu): \< 6.8.0-136.136 \| All versions (No fix recorded) \| \< 7.0.0-27.27
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1061.64 \| All versions (No fix recorded) \| \< 7.0.0-1008.8
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 28)

- <https://git.kernel.org/stable/c/c78e1d4e48f23792adaa7c94251e22b0d9700a39>
- <https://git.kernel.org/stable/c/9e1b798257f96d2e2a2639830eb71add545ce749>
- <https://git.kernel.org/stable/c/7003ae4810ca83f0ddca85b768500e313c4b998c>
- <https://git.kernel.org/stable/c/61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4>
- <https://git.kernel.org/stable/c/08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4>
- <https://ubuntu.com/security/CVE-2026-31582>
- <https://www.cve.org/CVERecord?id=CVE-2026-31582>
- <https://git.kernel.org/linus/08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4>
- <https://ubuntu.com/security/notices/USN-8488-1>
- <https://ubuntu.com/security/notices/USN-8488-2>
- <https://ubuntu.com/security/notices/USN-8507-1>
- <https://ubuntu.com/security/notices/USN-8569-1>
- <https://ubuntu.com/security/notices/USN-8567-1>
- <https://ubuntu.com/security/notices/USN-8574-1>
- <https://ubuntu.com/security/notices/USN-8574-2>
- <https://ubuntu.com/security/notices/USN-8595-1>
- <https://ubuntu.com/security/notices/USN-8596-1>
- <https://ubuntu.com/security/notices/USN-8603-1>
- <https://ubuntu.com/security/notices/USN-8595-2>
- <https://ubuntu.com/security/notices/USN-8606-1>

---

Data as of 2026-12-06T04:10:33.860Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
