Skip to content
Heist/ feed
Unrated

platform/x86: hp-bioscfg: fix heap OOB read in sk_store() and kek_store()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: fix heap OOB read in sk_store() and kek_store() sk_store() and kek_store() strip a trailing newline from the sysfs write before allocating the key buffer: length = count; if (buf[length - 1] == '\n') length--; bioscfg_drv.spm_data.signing_key = kmemdup(buf, length, GFP_KERNEL); but then pass the original "count" (not "length") as the copy size to hp_wmi_perform_query(), which memcpy()s that many bytes out of the "length"-sized allocation, reading one byte past it whenever the write ends in a newline, the normal case for a shell "echo" into sysfs. KASAN confirms this directly: BUG: KASAN: slab-out-of-bounds in hp_wmi_perform_query+0x1e9/0x460 [hp_bioscfg] Read of size 28 at addr ffff88813c8e2b80 by task python3/16022 ... sk_store+0xa7/0x240 [hp_bioscfg] kernfs_fop_write_iter+0x3e1/0x5d0 ... The buggy address is located 0 bytes inside of allocated 27-byte region [ffff88813c8e2b80, ffff88813c8e2b9b) Reproduced identically for kek_store, and at multiple write sizes (28, 57, 201 bytes), each time reading exactly one byte past a kmemdup() allocation one byte smaller than the write. Fix by passing "length" instead of "count" to hp_wmi_perform_query() in both functions.

Announced Source revision 1
Original source ↗

CVE-2026-81014

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

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": "b2715aa2e1352c0060b9dcba57a2e465bbfbcd68",
        "lessThan": "81db79fed115640736188e56595b1e9aec317d5b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b2715aa2e1352c0060b9dcba57a2e465bbfbcd68",
        "lessThan": "4c6374dcb270d12907b880cf82a5a5ef21785fc3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b2715aa2e1352c0060b9dcba57a2e465bbfbcd68",
        "lessThan": "7cd8fe01aba303a2382db0966eb6c8ab41d5f3c2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b2715aa2e1352c0060b9dcba57a2e465bbfbcd68",
        "lessThan": "67b60703d7d8af1ca0e49f72e1bdb1ccecd41b5b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b2715aa2e1352c0060b9dcba57a2e465bbfbcd68",
        "lessThan": "a7508c7959ff8d037327d377ed21a9c0eabe4674",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.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.6"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.6",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.157",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.109",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.50",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.4",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-81014

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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