Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A67103DD537 for ; Fri, 24 Apr 2026 14:44:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041863; cv=none; b=oyAkAc1otmYm7VVJ6OmGCsMw9+v0WTDVxahKSIslh/rNapkU5/hiWHbwNzUE2o0lRkeISJIxChWgJqdHSk56p853guMaO79v+quC8V/rQfNQpfjZRNNskPhSqLt69qpYicsrESJJBpLtdlNsrPSkY2KpMBvm/5CXMfD2IhCRCkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041863; c=relaxed/simple; bh=IQ685kEY9nI3i+kklFymrT22t9fdGrZc3juEiEgWFnk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mUKgEhPSA53AeV4xAnqhnUl+X9+Rs6FbArc2USgTHfwIw0zKvwFNO3yCduRvt+0dJizYF/jn4RRAqBbWkBgIARiRFaziiaT662jq7bN3kmcjGhP/luJR+wPzShBFL0sLiRTJzapc5VeVBIPezkTizDOMeasp7KVwAh1T7CnWYmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bpJa3HAE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="bpJa3HAE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CF55C19425; Fri, 24 Apr 2026 14:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041863; bh=IQ685kEY9nI3i+kklFymrT22t9fdGrZc3juEiEgWFnk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=bpJa3HAE1FlzNglaOek/S0+Tc1Ce0iGWUoSR2dkBc9KW1zRjCpOftJ5zNcqV/qxva JpEwbd0LzXVaDZzostu7S9vcDJSfp5W8z548LnVGyms7r4o5eqmg14tVz9NsLIRyWt 1ImXlt0JgFRmmJYBftViX1pg6s8ZYZ8EQzy2Us9A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31582: hwmon: (powerz) Fix use-after-free on USB disconnect Date: Fri, 24 Apr 2026 16:43:18 +0200 Message-ID: <2026042412-CVE-2026-31582-cf91@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2518; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hzLHhmNQyso+rhkEFSoWz+pRbQ+LI0GQYvmhL3ztT7s=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvGxtyz1lu9YvSu9inotb38eCfLuU16TbPTtdYMs5SO RSdtIexI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZS+YhhDsdJlknWFgym80QX bbWsDFUtFVc5xTDfuVFV2Sg+JZa/isGXf+fqOV/sexkB X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-31582 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit c78e1d4e48f23792adaa7c94251e22b0d9700a39 Fixed in 6.18.24 with commit 9e1b798257f96d2e2a2639830eb71add545ce749 Fixed in 6.19.14 with commit 7003ae4810ca83f0ddca85b768500e313c4b998c Fixed in 7.0.1 with commit 61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31582 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/hwmon/powerz.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/c78e1d4e48f23792adaa7c94251e22b0d9700a39 https://git.kernel.org/stable/c/9e1b798257f96d2e2a2639830eb71add545ce749 https://git.kernel.org/stable/c/7003ae4810ca83f0ddca85b768500e313c4b998c https://git.kernel.org/stable/c/61f2aa23b0ce8d7aa5071ed25a7471e246a4fdd4 https://git.kernel.org/stable/c/08e57f5e1a9067d5fbf33993aa7f51d60b3d13a4