CVE-2026-98000
Description
A flaw was found in the Linux kernel's Hardware Monitoring (hwmon) subsystem. This vulnerability allows a local user to cause a Denial of Service (DoS) or potentially corrupt memory by triggering a use-after-free (UAF) condition. When an error occurs during a device write operation, the kernel releases the device prematurely, causing it to access and unlock an already-freed lock during cleanup.
Statement
A Moderate severity use-after-free flaw was found in the Linux kernel's hardware monitoring (hwmon) subsystem. In pec_store(), a guard(mutex) is taken on the hwmon device lock; when the underlying chip write operation fails with an error other than -EOPNOTSUPP, the error path calls put_device(), which can drop the final reference and free the device while the mutex guard is still in scope. When the function then returns, the guard cleanup attempts to unlock the already-freed mutex. A local user with the privileges required to write to the hwmon PEC sysfs attribute, and who can trigger a chip write error under the necessary device reference-lifetime conditions, could use this flaw to crash the kernel (denial of service) or potentially corrupt kernel memory. Red Hat Enterprise Linux 10 (rhel-10.2, rhel-10.3, rhel-10.4) and Red Hat In-Vehicle OS 2 (kernel and kernel-ivos-qualcomm) are affected, with fixes currently deferred for those streams; the residual risk of the deferral is considered limited because exploitation requires privileged local access and depends on specific error and reference-counting conditions, so the practical impact is local denial of service. RHEL 7, 8, and 9 kernels, kernel-rt, and OpenShift Container Platform RHEL CoreOS images are not affected because the vulnerable code, introduced upstream in kernel 6.18 by the hwmon serialization change, is not present in those streams.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.5 | N/A | N/A |
| Attack Vector | Local | N/A | N/A |
| Attack Complexity | Low | N/A | N/A |
| Privileges Required | Low | N/A | N/A |
| User Interaction | None | N/A | N/A |
| Scope | Unchanged | N/A | N/A |
| Confidentiality | None | N/A | N/A |
| Integrity Impact | None | N/A | N/A |
| Availability Impact | High | N/A | N/A |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
If the expired pointer is used in a read operation, an attacker might be able to control data read in by the application.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
If the expired pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.
Integrity,Confidentiality,Availability
Technical Impact: Execute Unauthorized Code or Commands
If the expired pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.