hwmon: Fix potential UAF in pec_store
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.
CVE-2026-98000
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-98000
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "3ad2a7b9b15d5072139a20be84adb36776eb6c9b",
"lessThan": "8afab57bcdbc2186f325972e777880ac5a220f4f",
"versionType": "git"
},
{
"status": "affected",
"version": "3ad2a7b9b15d5072139a20be84adb36776eb6c9b",
"lessThan": "01dd8b4fc2cf83c66565c0f382fb1841e9000a89",
"versionType": "git"
},
{
"status": "affected",
"version": "3ad2a7b9b15d5072139a20be84adb36776eb6c9b",
"lessThan": "354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2",
"versionType": "git"
}
],
"programFiles": [
"drivers/hwmon/hwmon.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.18"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.18",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.7",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/hwmon/hwmon.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98000
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #38127 · Revision 1
- Added to Heist Feed
- Publisher date