CVE-2026-31582

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

State
Published
Severity
Not scored
Published
Apr 24, 2026
Updated
Jun 14, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4381a36abdf1c5c0323c1c51f869dc000115eb20 to before c78e1d4e48f23792adaa7c94251e22b0d9700a39Affected
  • 4381a36abdf1c5c0323c1c51f869dc000115eb20 to before 9e1b798257f96d2e2a2639830eb71add545ce749Affected
  • 4381a36abdf1c5c0323c1c51f869dc000115eb20 to before 7003ae4810ca83f0ddca85b768500e313c4b998cAffected
  • 4381a36abdf1c5c0323c1c51f869dc000115eb20 to before 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4Affected
  • 4381a36abdf1c5c0323c1c51f869dc000115eb20 to before 08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4Affected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.12.83 through 6.12.*Not affected
  • 6.18.24 through 6.18.*Not affected
  • 6.19.14 through 6.19.*Not affected
  • 7.0.1 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.