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 CA42241BA7F for ; Tue, 6 Oct 2026 08:47:14 +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=1791276436; cv=none; b=LPvA1mT1ZnXTE07wfYRZ1f/ko8q1zryLdOqnKM3GTHodIoo+vWLrgtmJVj5pgVnR8aHVP3viv7kPoUABRDIuImHVThjE2+4APdw5qnJ/sHna0VWjCQsWrOwN5wFX6zOUNIW1MCkWLEub8ldUwXAwCHipecXz1JaQAmuBnGRDSeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276436; c=relaxed/simple; bh=yXSHUfRqyVx1yshQJB5JybVq/ED03w/hAQsXihvped8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MIdpycpBDtNzikczJsecdSoDD2CkDdVFEniqIlUgxxo5va0Xa0kNPDVSLWj1oK55hR4YQpzeJJkDYb2JyOpyJ7wX+jd6yrj03vQZSLqcw/HADu3RgTxvLbfMlqBs2VdF29pUx8CrWdC/WK/T9JI+iuyAASHuJRaRvrbC4V+TFYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e+jgyyJ/; 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="e+jgyyJ/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D91D61F000FF; Tue, 6 Oct 2026 08:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276434; bh=EzOwbWRMQckuteVfK5tL0JhIf6SOMTjEDh5XDytJJ2c=; h=From:To:Cc:Subject:Date:Reply-To; b=e+jgyyJ/S5PnuiSghcu9T3tgglpggP3m8rTt021d69X/+mtqNnDXwQINoHu4FUOP+ eQtYbePhviXY/ZMuf5I1qmwqoxe7xAvSGDSvuVRW3AiTJfl1sIEsi+hpJaugQak2b+ kT7X5jQsRdB7bmqSNiwx4X+GTVlF/gcu/3Uq0rrY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98200: hwmon: (hp-wmi-sensors) Fix use-after-free in fungible_show() Date: Tue, 6 Oct 2026 10:45:01 +0200 Message-ID: <2026100636-CVE-2026-98200-5da3@gregkh> X-Mailer: git-send-email 2.56.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=4071; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EeSfuHHOx/TZxI3r3tUaYdumFuVh+qVzdT+QqM0kkHg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtnwJYDF6b6F/ye72qXPz/Pp11jzac9o+7eHnpFWMn /iPPG7M7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJZN1iWHDqM7vxqyWbYuKK zfZlBOZrZkl+1GJYMHPv5XMrbuQ6in/u3r60sLzxs83utQA= 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: (hp-wmi-sensors) Fix use-after-free in fungible_show() nsensor->current_state is dynamically replaced as the sensor's state changes. update_numeric_sensor_from_wobj() does this by freeing the old string and installing a new one: if (strcmp(trimmed, nsensor->current_state)) { new_string = hp_wmi_strdup(dev, trimmed); if (new_string) { devm_kfree(dev, nsensor->current_state); nsensor->current_state = new_string; } } This function is only ever called from hp_wmi_update_info() while state->lock is held, so the free-and-replace itself is properly serialized against concurrent updates. fungible_show(), however, reads the same pointer after the lock has already been dropped: err = hp_wmi_update_info(state, info); if (err) return err; switch (prop) { ... case HP_WMI_PROPERTY_CURRENT_STATE: seq_printf(seqf, "%s\n", nsensor->current_state); break; hp_wmi_update_info() takes state->lock internally and releases it before returning, so by the time fungible_show() dereferences nsensor->current_state in seq_printf(), no lock is held. Two processes reading a sensor's current_state debugfs entry at overlapping times (or one reading it while another read of the same sensor triggers a refresh) can race: one thread's seq_printf() can be part-way through printing the string at the moment another thread's call into update_numeric_sensor_from_wobj() frees it with devm_kfree() and installs a new pointer, causing a use-after-free read. Take state->lock around the read in fungible_show() as well, so it can never run concurrently with the free-and-replace in update_numeric_sensor_from_wobj(). The Linux kernel CVE team has assigned CVE-2026-98200 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 23902f98f8d4811ab84dde6419569a5b374f8122 and fixed in 6.6.158 with commit b6b2a638aa36c441b2c8d0b6bd8ed2bb9701e795 Issue introduced in 6.5 with commit 23902f98f8d4811ab84dde6419569a5b374f8122 and fixed in 6.12.112 with commit f59ecfd2c58bace39538f3fff7f43788b3fdb539 Issue introduced in 6.5 with commit 23902f98f8d4811ab84dde6419569a5b374f8122 and fixed in 6.18.54 with commit 72c85149794a1ccf8d718ffed1521106b5d31968 Issue introduced in 6.5 with commit 23902f98f8d4811ab84dde6419569a5b374f8122 and fixed in 7.2.8 with commit 9c1e65bc79ff104914b11e6ad972139296ec86fe Issue introduced in 6.5 with commit 23902f98f8d4811ab84dde6419569a5b374f8122 and fixed in 7.3-rc4 with commit e6cb0b4d4ecb8e71fd2200d907ab2e9663356f69 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-98200 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/hp-wmi-sensors.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/b6b2a638aa36c441b2c8d0b6bd8ed2bb9701e795 https://git.kernel.org/stable/c/f59ecfd2c58bace39538f3fff7f43788b3fdb539 https://git.kernel.org/stable/c/72c85149794a1ccf8d718ffed1521106b5d31968 https://git.kernel.org/stable/c/9c1e65bc79ff104914b11e6ad972139296ec86fe https://git.kernel.org/stable/c/e6cb0b4d4ecb8e71fd2200d907ab2e9663356f69