{"id":"CVE-2026-31582","aliases":["CVE-2026-31582"],"related":[],"kind":"vulnerability","state":"published","title":"hwmon: (powerz) Fix use-after-free on USB disconnect","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (powerz) Fix use-after-free on USB disconnect\n\nAfter powerz_disconnect() frees the URB and releases the mutex, a\nsubsequent powerz_read() call can acquire the mutex and call\npowerz_read_data(), which dereferences the freed URB pointer.\n\nFix by:\n - Setting priv->urb to NULL in powerz_disconnect() so that\n   powerz_read_data() can detect the disconnected state.\n - Adding a !priv->urb check at the start of powerz_read_data()\n   to return -ENODEV on a disconnected device.\n - Moving usb_set_intfdata() before hwmon registration so the\n   disconnect handler can always find the priv pointer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (powerz) Fix use-after-free on USB disconnect\n\nAfter powerz_disconnect() frees the URB and releases the mutex, a\nsubsequent powerz_read() call can acquire the mutex and call\npowerz_read_data(), which dereferences the freed URB pointer.\n\nFix by:\n - Setting priv->urb to NULL in powerz_disconnect() so that\n   powerz_read_data() can detect the disconnected state.\n - Adding a !priv->urb check at the start of powerz_read_data()\n   to return -ENODEV on a disconnected device.\n - Moving usb_set_intfdata() before hwmon registration so the\n   disconnect handler can always find the priv pointer.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nhwmon: (powerz) Corrección de uso después de liberación en desconexión USB\n\nDespués de que powerz_disconnect() libera el URB y libera el mutex, una llamada posterior a powerz_read() puede adquirir el mutex y llamar a powerz_read_data(), que desreferencia el puntero URB liberado.\n\nSe corrige mediante:\n- Establecer priv  ->  urb a NULL en powerz_disconnect() para que powerz_read_data() pueda detectar el estado desconectado.\n- Añadir una comprobación !priv  ->  urb al inicio de powerz_read_data() para devolver -ENODEV en un dispositivo desconectado.\n- Mover usb_set_intfdata() antes del registro de hwmon para que el gestor de desconexión siempre pueda encontrar el puntero priv.","source":"nvd"}],"published":"2026-04-24T14:42:12.257Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"4381a36abdf1c5c0323c1c51f869dc000115eb20","fixed":"c78e1d4e48f23792adaa7c94251e22b0d9700a39","status":"affected"},{"type":"git","introduced":"4381a36abdf1c5c0323c1c51f869dc000115eb20","fixed":"9e1b798257f96d2e2a2639830eb71add545ce749","status":"affected"},{"type":"git","introduced":"4381a36abdf1c5c0323c1c51f869dc000115eb20","fixed":"7003ae4810ca83f0ddca85b768500e313c4b998c","status":"affected"},{"type":"git","introduced":"4381a36abdf1c5c0323c1c51f869dc000115eb20","fixed":"61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4","status":"affected"},{"type":"git","introduced":"4381a36abdf1c5c0323c1c51f869dc000115eb20","fixed":"08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c78e1d4e48f23792adaa7c94251e22b0d9700a39","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9e1b798257f96d2e2a2639830eb71add545ce749","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7003ae4810ca83f0ddca85b768500e313c4b998c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31582","url":"https://www.cve.org/CVERecord?id=CVE-2026-31582","licence":"CVE Terms of Use","modified":"2026-06-14T17:42:10.056Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31582","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31582","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.495Z","epss":{"score":0.0013,"percentile":0.02832,"date":"2026-12-01T12:00:22.000Z"}}