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

Published Apr 24, 2026
·
Updated

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

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

After powerzdisconnect() frees the URB and releases the mutex, a subsequent powerzread() call can acquire the mutex and call powerzreaddata(), which dereferences the freed URB pointer.

Fix by: - Setting priv->urb to NULL in powerzdisconnect() so that powerzreaddata() can detect the disconnected state. - Adding a !priv->urb check at the start of powerzreaddata() to return -ENODEV on a disconnected device. - Moving usbsetintfdata() before hwmon registration so the disconnect handler can always find the priv pointer.

Affected Software

6 affected componentsFixes available
Linux Linux kernel (hwmon/powerz)
Linux Linux kernel<6.12.83
Linux Linux kernel>=6.13<6.18.24
Linux Linux kernel>=6.19<6.19.14
Linux Linux kernel>=7.0<7.0.1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  2. Compensating control

    In the powerz driver, set priv->urb to NULL in powerz_disconnect(), add a !priv->urb check at the start of powerz_read_data() that returns -ENODEV for a disconnected device, and move usb_set_intfdata() before hwmon registration so the disconnect handler can always find the priv pointer.

Event History

Apr 24, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-31582?

CVE-2026-31582 is classified as a high-severity vulnerability due to its potential for causing use-after-free errors.

2

How do I fix CVE-2026-31582?

To fix CVE-2026-31582, users should update the Linux kernel to the patched version that resolves the use-after-free issue.

3

What systems are affected by CVE-2026-31582?

CVE-2026-31582 affects the Linux kernel, specifically the hwmon subsystem related to the powerz driver.

4

What does the CVE-2026-31582 vulnerability entail?

CVE-2026-31582 involves a use-after-free condition that can occur on USB disconnect events in the hwmon powerz driver.

5

Is there a workaround for CVE-2026-31582?

Currently, the recommended solution for CVE-2026-31582 is to apply the latest kernel patches as there are no known effective workarounds.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203