Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 744C249481D for ; Fri, 25 Sep 2026 10:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332328; cv=none; b=XjotPl3ZsboZLhlLphk8z1iUKp0gfFEftGXVZjrbp9OVl4MCI/PfoePmqaoEa/8DGIhYLj3o5TdFlpOyR3ssnox1kOk46qfdP2hyEGiV3JuCUkhfBEFDEAljZedcf98Z1mhMDjRbEM5uymTHQAJOFwqwkU5vEumh1FUluTfmD4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332328; c=relaxed/simple; bh=NX2ua3UdMnpzMpcGyrEHB64N1CxMvtmO+XRu+uJxOmQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RfDaWSd+x1KQZtJVc066ZHOLg0YIWfZq4iE/boA06jauCsEqYgWKqmyO9nA8Gdp6UkC/8BkwO1KadmhjzylHb/Jeq9cIaEYAI40Qfl8xc8oKHFpkAg+/rFZl/CqMM5WhxoMCiHAXm85E5huHNMoY6Sj7Fk5LVgJl7lOHou2Rdk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XCJCzQLa; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XCJCzQLa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD5331F000FF; Fri, 25 Sep 2026 10:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332327; bh=QyIyFwMof42il9KCttl+MEJ3plqfQ9WTw34u2H/DrOw=; h=From:To:Cc:Subject:Date:Reply-To; b=XCJCzQLaFiUGZhuNHk6verGXG+IxuLJjNwaF5dD2yck/lDNF/Sp2+LOlPMF3bkAH8 f9uaOSD3RP5icybnMRHT/6rwW8E1dRs1xh6PZB1n4ylQnLilIXsIfJJOYSt16aHoos ONxHVqYwXNzQLHPufDOuprRjz5Z/34HVETCMBu/I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98000: hwmon: Fix potential UAF in pec_store Date: Fri, 25 Sep 2026 12:25:02 +0200 Message-ID: <2026092523-CVE-2026-98000-ec5a@gregkh> X-Mailer: git-send-email 2.55.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=2406; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6ZNj3JJR78oHhffW0gS6J/KYyyxCLj/zvhiGntx5hCM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvOP/M0RmtFQ0f6yXihI1rXv7sdc1SL9OUaTZfKHCu ZPOf1M6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCLrohgWNH58spJng0DhgT0L ts5WbKnNm+slyjBX4OuDmcsOHNDYcpFltePK3tXzFL22AAA= 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: Fix potential UAF in pec_store Sashiko reports: In pec_store(), a guard(mutex)(&hwdev->lock) is taken. If the chip write operation returns an error other than -EOPNOTSUPP, the code jumps to the put label, which calls put_device(hdev). If this drops the final reference, the device is freed. When the function then returns, the guard cleanup function runs and attempts to unlock the freed mutex. Use scoped_guard() instead of guard() to avoid the problem. The Linux kernel CVE team has assigned CVE-2026-98000 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 3ad2a7b9b15d5072139a20be84adb36776eb6c9b and fixed in 6.18.53 with commit 8afab57bcdbc2186f325972e777880ac5a220f4f Issue introduced in 6.18 with commit 3ad2a7b9b15d5072139a20be84adb36776eb6c9b and fixed in 7.2.7 with commit 01dd8b4fc2cf83c66565c0f382fb1841e9000a89 Issue introduced in 6.18 with commit 3ad2a7b9b15d5072139a20be84adb36776eb6c9b and fixed in 7.3-rc3 with commit 354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2 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-98000 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/hwmon.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/8afab57bcdbc2186f325972e777880ac5a220f4f https://git.kernel.org/stable/c/01dd8b4fc2cf83c66565c0f382fb1841e9000a89 https://git.kernel.org/stable/c/354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2