PT-2026-34934 · Linux · Linux Kernel
Published
2026-04-24
·
Updated
2026-05-06
·
CVE-2026-31582
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
A use-after-free issue exists in the hwmon powerz component during USB disconnection. When
powerz disconnect() frees the URB (USB Request Block) and releases the mutex, a subsequent call to powerz read() can acquire the mutex and trigger powerz read data(), which then dereferences the freed URB pointer.Recommendations
Set
priv->urb to NULL in powerz disconnect() to allow powerz read data() to detect the disconnected state.
Add a !priv->urb check at the beginning of powerz read data() to return -ENODEV for disconnected devices.
Move usb set intfdata() before hwmon registration to ensure the disconnect handler can always locate the priv pointer.Fix
Use After Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linux Kernel