{"id":"CVE-2026-98000","revision":"507d126720ee4b2db285b4149433e75d","records":[{"revision":"507d126720ee4b2db285b4149433e75d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-98000","aliases":[],"title":"hwmon: Fix potential UAF in pec_store","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: Fix potential UAF in pec_store\n\nSashiko reports:\n\nIn pec_store(), a guard(mutex)(&hwdev->lock) is taken. If the chip write\noperation returns an error other than -EOPNOTSUPP, the code jumps to the\nput label, which calls put_device(hdev). If this drops the final reference,\nthe device is freed. When the function then returns, the guard cleanup\nfunction runs and attempts to unlock the freed mutex.\n\nUse scoped_guard() instead of guard() to avoid the problem.","state":0,"publishedAt":"2026-09-25T10:23:28.703+00:00","modifiedAt":"2026-10-19T09:12:06.063+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/hwmon/hwmon.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"3ad2a7b9b15d5072139a20be84adb36776eb6c9b\",\n                            \"lessThan\": \"8afab57bcdbc2186f325972e777880ac5a220f4f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"3ad2a7b9b15d5072139a20be84adb36776eb6c9b\",\n                            \"lessThan\": \"01dd8b4fc2cf83c66565c0f382fb1841e9000a89\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"3ad2a7b9b15d5072139a20be84adb36776eb6c9b\",\n                            \"lessThan\": \"354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/hwmon/hwmon.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.18\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.18\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.53\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.7\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/8afab57bcdbc2186f325972e777880ac5a220f4f","https://git.kernel.org/stable/c/01dd8b4fc2cf83c66565c0f382fb1841e9000a89","https://git.kernel.org/stable/c/354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98000","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98000","identifiers":["CVE-2026-98000"]},"retained":false,"historicalAffected":[]}],"coverage":[]}