Skip to content
Heist/ feed
Unrated

hwmon: (hp-wmi-sensors) Fix use-after-free in fungible_show()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: hwmon: (hp-wmi-sensors) Fix use-after-free in fungible_show() nsensor->current_state is dynamically replaced as the sensor's state changes. update_numeric_sensor_from_wobj() does this by freeing the old string and installing a new one: if (strcmp(trimmed, nsensor->current_state)) { new_string = hp_wmi_strdup(dev, trimmed); if (new_string) { devm_kfree(dev, nsensor->current_state); nsensor->current_state = new_string; } } This function is only ever called from hp_wmi_update_info() while state->lock is held, so the free-and-replace itself is properly serialized against concurrent updates. fungible_show(), however, reads the same pointer after the lock has already been dropped: err = hp_wmi_update_info(state, info); if (err) return err; switch (prop) { ... case HP_WMI_PROPERTY_CURRENT_STATE: seq_printf(seqf, "%s\n", nsensor->current_state); break; hp_wmi_update_info() takes state->lock internally and releases it before returning, so by the time fungible_show() dereferences nsensor->current_state in seq_printf(), no lock is held. Two processes reading a sensor's current_state debugfs entry at overlapping times (or one reading it while another read of the same sensor triggers a refresh) can race: one thread's seq_printf() can be part-way through printing the string at the moment another thread's call into update_numeric_sensor_from_wobj() frees it with devm_kfree() and installs a new pointer, causing a use-after-f

Announced Source revision 1
Original source ↗

CVE-2026-98200

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-98200

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": "23902f98f8d4811ab84dde6419569a5b374f8122",
        "lessThan": "b6b2a638aa36c441b2c8d0b6bd8ed2bb9701e795",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "23902f98f8d4811ab84dde6419569a5b374f8122",
        "lessThan": "f59ecfd2c58bace39538f3fff7f43788b3fdb539",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "23902f98f8d4811ab84dde6419569a5b374f8122",
        "lessThan": "72c85149794a1ccf8d718ffed1521106b5d31968",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "23902f98f8d4811ab84dde6419569a5b374f8122",
        "lessThan": "9c1e65bc79ff104914b11e6ad972139296ec86fe",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "23902f98f8d4811ab84dde6419569a5b374f8122",
        "lessThan": "e6cb0b4d4ecb8e71fd2200d907ab2e9663356f69",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/hwmon/hp-wmi-sensors.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.5"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.5",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.158",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.112",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.54",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.8",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/hwmon/hp-wmi-sensors.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98200

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#38280 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement