# CVE-2026-98000: hwmon: Fix potential UAF in pec_store

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-09-25T10:23:28.703Z
- Modified: 2026-10-19T10:17:51.393Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3ad2a7b9b15d5072139a20be84adb36776eb6c9b before 8afab57bcdbc2186f325972e777880ac5a220f4f; from 3ad2a7b9b15d5072139a20be84adb36776eb6c9b before 01dd8b4fc2cf83c66565c0f382fb1841e9000a89; from 3ad2a7b9b15d5072139a20be84adb36776eb6c9b before 354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2; 6.18 (not affected: before 6.18; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/8afab57bcdbc2186f325972e777880ac5a220f4f>
- <https://git.kernel.org/stable/c/01dd8b4fc2cf83c66565c0f382fb1841e9000a89>
- <https://git.kernel.org/stable/c/354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2>

## Sources

- CVE List: [CVE-2026-98000](https://www.cve.org/CVERecord?id=CVE-2026-98000), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98000](https://nvd.nist.gov/vuln/detail/CVE-2026-98000), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98000 · Whole record: https://cve.day/CVE-2026-98000.json · Rebuilt by cve.day 2026-11-25T22:59:41.017Z
