Skip to content
Heist/ feed
Back to feed
UnratedFix available

hwmon: Fix potential UAF in pec_store

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.18.53, 7.2.7
CVEs
CVE-2026-98000
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 01:40 UTC · Revision 1

Source evidence

hwmon: Fix potential UAF in pec_store

core-osv · Original source

Published 25 Sept 2026, 10:23 UTC

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.

osv:CVE-2026-98000

Kernel

Fixed versions: 6.18.53, 7.2.7

Complete source record
{
  "id": "d42b6e3adf8529d408470bce3b796d29410ff9352b3de2ccbc0b5e70901df9c0",
  "url": "https://osv.dev/vulnerability/CVE-2026-98000",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "hwmon: Fix potential UAF in pec_store",
    "summary": "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.",
    "evidence": "osv:CVE-2026-98000",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.18.53",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-98000",
      "aliases": [
        "CVE-2026-98000"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3ad2a7b9b15d5072139a20be84adb36776eb6c9b"
                },
                {
                  "fixed": "8afab57bcdbc2186f325972e777880ac5a220f4f"
                },
                {
                  "fixed": "01dd8b4fc2cf83c66565c0f382fb1841e9000a89"
                },
                {
                  "fixed": "354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98000.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.18.0"
                },
                {
                  "fixed": "6.18.53"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98000.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.532508462Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/01dd8b4fc2cf83c66565c0f382fb1841e9000a89",
        "https://git.kernel.org/stable/c/354ccc99b2dc8ba0cf6d4de34e520bcf6ecca5c2",
        "https://git.kernel.org/stable/c/8afab57bcdbc2186f325972e777880ac5a220f4f",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98000.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-98000",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98000.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-98000",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 517058,
  "published_at": "2026-09-25T10:23:28.703+00:00"
}