CVE-2026-31582

Source
https://cve.org/CVERecord?id=CVE-2026-31582
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31582.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31582
Downstream
Related
Published
2026-04-24T14:42:12.257Z
Modified
2026-06-18T03:56:22.900978420Z
Summary
hwmon: (powerz) Fix use-after-free on USB disconnect
Details

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 usbset_intfdata() before hwmon registration so the disconnect handler can always find the priv pointer.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31582.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4381a36abdf1c5c0323c1c51f869dc000115eb20
Fixed
c78e1d4e48f23792adaa7c94251e22b0d9700a39
Fixed
9e1b798257f96d2e2a2639830eb71add545ce749
Fixed
7003ae4810ca83f0ddca85b768500e313c4b998c
Fixed
61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4
Fixed
08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31582.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.83
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.24
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.14
Type
ECOSYSTEM
Events
Introduced
6.20.0
Fixed
7.0.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31582.json"