CVE-2026-31582

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

No CVSS score yet EPSS 0.13%

Published 24 Apr 2026 Updated 14 Jun 2026 CNA: Linux

Check your servers for CVE-2026-31582

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31582 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.83% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 4381a36abdf1c5c0323c1c51f869dc000115eb20, before c78e1d4e48f23792adaa7c94251e22b0d9700a39
affected from 4381a36abdf1c5c0323c1c51f869dc000115eb20, before 9e1b798257f96d2e2a2639830eb71add545ce749
affected from 4381a36abdf1c5c0323c1c51f869dc000115eb20, before 7003ae4810ca83f0ddca85b768500e313c4b998c
affected from 4381a36abdf1c5c0323c1c51f869dc000115eb20, before 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4
affected from 4381a36abdf1c5c0323c1c51f869dc000115eb20, before 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4
Other versions: unaffected
Linux
affected 6.7
unaffected before 6.7
unaffected from 6.12.83 up to and including 6.12.*
unaffected from 6.18.24 up to and including 6.18.*
unaffected from 6.19.14 up to and including 6.19.*
unaffected from 7.0.1 up to and including 7.0.*
unaffected 7.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31582 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31582

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31582
trivy image --scanners vuln IMAGE | grep CVE-2026-31582

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31582 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.