high · CVSS v3 7.8
CVE-2026-98000
A use-after-free in the Linux kernel hwmon subsystem can cause a crash or privilege escalation when a device write fails. The flaw occurs af
Overview
A use-after-free in the Linux kernel hwmon subsystem can cause a crash or privilege escalation when a device write fails. The flaw occurs after the device is freed while its mutex is still held. Systems running affected kernel versions are impacted.
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.
Impact
Confidentiality: None. Integrity: Potential denial of service or privilege escalation. Availability: System crash. Defenders: System administrators and kernel maintainers.
Remediation
Apply the kernel update that replaces guard() with scoped_guard() in hwmon/pec_store. If an update is unavailable, disable hwmon or restrict device write access. Verify that the device reference count is not decremented prematurely.
Risk context
High severity with CVSS 7.8 indicates significant risk. No EPSS data is available. Prompt patching is recommended to mitigate potential crashes or privilege escalation.
Affected products
- Linux kernel
- Linux distributions
- Ubuntu
- Fedora
- Red Hat Enterprise Linux
- CentOS
- Debian
- Arch Linux
Scores
- Severity
- high
- CVSS v2
- 6.8
- CVSS v3
- 7.8
- CVSS v4
- —
- EPSS
- —