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.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel Crash or Potential Code Execution
Action: Apply Patch
AI Analysis

Impact

The Linux kernel's hardware monitoring subsystem contains a use‑after‑free bug in pec_store where a guard around the device mutex is released after the device reference count drops to zero during a write error. This releases a mutex that may already be freed, causing a kernel panic or, in some contexts, enabling the execution of arbitrary code with kernel privileges. The flaw is a classic Use‑After‑Free and involves improper resource cleanup (CWE‑825).

Affected Systems

Every Linux kernel release that contains the buggy pec_store implementation is affected. The fix is incorporated in the commit referenced by the advisory; upgrading to any kernel that includes that commit removes the race condition between device release and mutex unlock. No other vendor or product is limited beyond the Linux kernel itself.

Risk and Exploitability

The CVSS score of 5.5 classifies the vulnerability as moderate severity, while the EPSS score of <1% indicates a very low current exploitation probability. The vulnerability is not listed in CISA KEV. The attack vector is inferred to be local privileged‑user: a process that can trigger a failing hwmon write operation can exploit the race between device free and mutex release, potentially crashing the kernel or enabling kernel‑level code execution.

Generated by OpenCVE AI on October 1, 2026 at 04:03 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the pec_store patch; the commit replaces guard() with scoped_guard() to eliminate the use‑after‑free.
  • Reboot the system after the kernel upgrade to ensure the patched kernel is active.
  • If an urgent kernel upgrade is not possible, disable the hwmon driver or module that uses pec_store until the patch is applied.

Generated by OpenCVE AI on October 1, 2026 at 04:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 30 Sep 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
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.
Title hwmon: Fix potential UAF in pec_store
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:12:06.063Z

Reserved: 2026-09-25T10:19:56.068Z

Link: CVE-2026-98000

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:28.213

Modified: 2026-10-19T10:17:51.393

Link: CVE-2026-98000

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98000 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T04:15:16Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference