Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154474; b=g5q3OVLR7Udo7YGFl15ShVgqT5nsrU3ovaKUlai6GdgSXbpgOVwd04W+ynnEgFRaJ/xJ qtyjY2XN0jdRfGaa8guD51n09ZoKdnUOmgIMLBR3wAJPyC/pFN/DUJYEWpZgg2yp594vt ejvicmWpJzWoXav47HXz/GR5yGj+5SKGV+WZk/r6hQWDwLZW/r5XrW0hJzmPU5HdOzhc4 bkEVK5JF5fR/bpJPOHLI3PozxcVkve8IsSJjV2DPN9ZCbpVBPR5Xf3Rr4VS98Lan9xJXv L7jbvSB64SiCSGyeX8q0wrQ1AmJwQB0izDtu0AEJ2QzEz5XKGRpUr+5t5DZ2wlwX+BQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154474; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=W6GMnLbpQt4sjB2f4QOnvaVqlpSHrfDRxUxiwX992ek=; b=gVKKp2ByGZpE4txjzJFGe1enEXokK876dibpsSyzcRLtn0ke3lYMhWG1f89nbUTcDb/K 4Ki1P0otvaZJ9ivnkISM/RTWgoVbzpGPalrgXCBJCHXdlsRqfj3g3UvQKl6ioWx9mHqy/ sTF9fgLToCpew+vkWNuoUIf9eLLG4xAQCr/L95vxe0ODx9Rm4VhBf9zkGX5lD9eOL9zfh 8SI3KOevuX+lHOhekjfpeQFgQMTxDETIAaRwAAJymQqy+ttb3WSSbwWAYPtlem/tJ6vbB KWzJpQnBsysLHYLUIwzMsp0K4dUvEbc6iNnXL7N1tzxo55v3sJyq3lCVT0mZLX9Zi2g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ltkEeQQQ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88D9E606A511 for ; Fri, 20 Nov 2026 06:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ltkEeQQQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAC711F000CA; Fri, 20 Nov 2026 06:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154474; bh=W6GMnLbpQt4sjB2f4QOnvaVqlpSHrfDRxUxiwX992ek=; h=From:To:Cc:Subject:Date:Reply-To; b=ltkEeQQQ9DZ6TRlNB+Jp2lDAnvC8duZL5DTf4jdeaStjxt4ZMIQaPg+ZZpWb9koXp wZgBMyvj8csVwDQ97nQ05GuwSsMKK3JX7CDc4nUPrzk+sqHf5mgM1YUFPYR1bIMEGE F/n//tomaWp2Wo5XlTTYRJo6OVN5fMpfUCu18MHU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99718: hwmon: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind Date: Fri, 20 Nov 2026 06:51:44 +0100 Message-ID: <2026112009-CVE-2026-99718-09ad@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3832; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1Q7A9QmT0C1hcfMSG5Ju6kpBc9yIJWzJhrV88LY3Xc0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/709c85//zvrrsxg0A5IvVnXsnsN852B7inpO4un38 1U9Xz6q6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJVL5gWDD31+PbberCP9Ln rZOeMWvlxtedSdkMCxpDOB5nLTp9Yuv7jr0TnpY+apASOgQA 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: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind When a peci_dimmtemp device is unbound concurrently with its delayed initialization work (detect_work), newly allocated devm resources and the hwmon device are leaked, leading to a use-after-free when reading the lingering hwmon sysfs attributes. In peci_dimmtemp_probe(), detect_work is registered for cancellation via devm_delayed_work_autocancel(). During driver detach, devres_release_all() first moves all existing entries from dev->devres_head onto a local todo list before invoking their release callbacks in reverse order. If create_dimm_temp_info_delayed() is already running when devm_delayed_work_drop() calls cancel_delayed_work_sync(), create_dimm_temp_info() can allocate dimmtemp_label strings via devm_kzalloc()/devm_kasprintf() and register the hwmon device via devm_hwmon_device_register_with_info(), appending new devres entries to the now-empty dev->devres_head. Once the work finishes, devres_release_all() frees priv and priv->name from the local todo list without re-evaluating dev->devres_head, leaving the late devres allocations and registered hwmon device behind with a dangling priv pointer. Cancel detect_work synchronously in a driver .remove() callback instead of relying on devm_delayed_work_autocancel() so that the work is fully drained before devres_release_all() detaches dev->devres_head, allowing any devm resources registered by the delayed work to be released in proper reverse order. Also only schedule detect_work when check_populated_dimms() returns -EAGAIN so that probe failure paths do not leave delayed work pending. The Linux kernel CVE team has assigned CVE-2026-99718 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 73bc1b885daeb684fbcd16cc4e979cac6a831b12 and fixed in 6.12.118 with commit f27cb64b04af01370fbe2d23ba9aeb3401d6def8 Issue introduced in 5.18 with commit 73bc1b885daeb684fbcd16cc4e979cac6a831b12 and fixed in 6.18.64 with commit c7dcea6bdc6c36c649c1fdd29909b232bcac28c9 Issue introduced in 5.18 with commit 73bc1b885daeb684fbcd16cc4e979cac6a831b12 and fixed in 7.3.5 with commit 3f6bd7aeea5c3bd5ced9e23184155065f551ea96 Issue introduced in 5.18 with commit 73bc1b885daeb684fbcd16cc4e979cac6a831b12 and fixed in 7.4-rc2 with commit 61bc4514b8e99e9733c04de028885f6fc906d628 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-99718 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/peci/dimmtemp.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/f27cb64b04af01370fbe2d23ba9aeb3401d6def8 https://git.kernel.org/stable/c/c7dcea6bdc6c36c649c1fdd29909b232bcac28c9 https://git.kernel.org/stable/c/3f6bd7aeea5c3bd5ced9e23184155065f551ea96 https://git.kernel.org/stable/c/61bc4514b8e99e9733c04de028885f6fc906d628