{"id":"CVE-2026-98000","aliases":["CVE-2026-98000"],"related":[],"kind":"vulnerability","state":"published","title":"hwmon: Fix potential UAF in pec_store","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: Fix potential UAF in pec_store\n\nSashiko reports:\n\nIn pec_store(), a guard(mutex)(&hwdev->lock) is taken. If the chip write\noperation returns an error other than -EOPNOTSUPP, the code jumps to the\nput label, which calls put_device(hdev). If this drops the final reference,\nthe device is freed. When the function then returns, the guard cleanup\nfunction runs and attempts to unlock the freed mutex.\n\nUse scoped_guard() instead of guard() to avoid the problem.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: Fix potential UAF in pec_store\n\nSashiko reports:\n\nIn pec_store(), a guard(mutex)(&hwdev->lock) is taken. If the chip write\noperation returns an error other than -EOPNOTSUPP, the code jumps to the\nput label, which calls put_device(hdev). If this drops the final reference,\nthe device is freed. When the function then returns, the guard cleanup\nfunction runs and attempts to unlock the freed mutex.\n\nUse scoped_guard() instead of guard() to avoid the problem.","source":"cvelist"}],"published":"2026-09-25T10:23:28.703Z","modified":"2026-10-19T10:17:51.393Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3ad2a7b9b15d5072139a20be84adb36776eb6c9b","fixed":"8afab57bcdbc2186f325972e777880ac5a220f4f","status":"affected"},{"type":"git","introduced":"3ad2a7b9b15d5072139a20be84adb36776eb6c9b","fixed":"01dd8b4fc2cf83c66565c0f382fb1841e9000a89","status":"affected"},{"type":"git","introduced":"3ad2a7b9b15d5072139a20be84adb36776eb6c9b","fixed":"354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8afab57bcdbc2186f325972e777880ac5a220f4f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01dd8b4fc2cf83c66565c0f382fb1841e9000a89","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98000","url":"https://www.cve.org/CVERecord?id=CVE-2026-98000","licence":"CVE Terms of Use","modified":"2026-10-19T09:12:06.063Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98000","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98000","licence":"Public domain","modified":"2026-10-19T10:17:51.393Z"}],"updatedAt":"2026-11-25T22:59:41.017Z","epss":{"score":0.00166,"percentile":0.06091,"date":"2026-12-01T12:00:22.000Z"}}