CVE Catalog

CVE-2026-98000

Unknown
Published: Translated: NVD NIST

Summary

In the Linux kernel pec_store() takes a guard(mutex)(&hwdev->lock). 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, and when the function returns the guard cleanup attempts to unlock the freed mutex (UAF). The fix uses scoped_guard() instead of guard().

Risk Assessment

A use-after-free on a freed mutex can lead to memory corruption, kernel panic, or potential code execution. This may result in denial of service or privilege escalation.

Recommendation

Update the Linux kernel to a version containing the fix. On systems using hwmon and PEC operations, prioritizing this update is recommended.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS