CVE-2026-100086

platform/x86: hp-bioscfg: NUL-terminate the SPM auth token

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

platform/x86: hp-bioscfg: NUL-terminate the SPM auth token

auth_token_store() copies the token with kmemdup(), which does not NUL
terminate it, but hp_calculate_security_buffer() and
hp_populate_security_buffer() use it as a C string and read past the
allocation.

A lone newline (echo > auth_token) is worse: kmemdup() of 0 bytes
returns ZERO_SIZE_PTR, which passes the NULL checks, so a later
attribute write passes it to strlen().

A userspace replica of the two helpers under ASan reports a heap
buffer overflow in hp_calculate_security_buffer() for the unterminated
token and a fault at address 0x10 for the lone newline, and is clean
with this change.

The token is a string, so copy it with kstrndup(), which always NUL
terminates and allocates at least one byte.

Analysis

AI-generated

Technical impact

The kernel vulnerability originates in the hp-bioscfg interface where the authentication token is duplicated with kmemdup() but not NUL‑terminated. Subsequent code paths treat the token as a C string and read past the allocation, causing a heap buffer overflow or a fault when the token is empty. An attacker with local kernel access could supply a crafted token that triggers this overflow, leading to kernel memory corruption and potential privilege escalation or system instability. This weakness is a classic heap buffer overflow, corresponding to CWE‑122.

Affected Systems

The affected product is the Linux kernel. No specific version range is supplied; kernel maintainers have inserted the fix in a patch referenced by the upstream git commit logs. If your environment runs a version compiled from a source tree that predates the patch, it is potentially vulnerable.

Risk and Exploitability

While no CVSS score is listed, the nature of the flaw—heap corruption in kernel space—is severe and could be exploited by local users. The EPSS score is not available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The likely attack vector is local, requiring access to run the hp‑bioscfg command or otherwise provide a malicious authentication token. No public exploit has been reported yet, but the kernel memory corruption could be leveraged to gain elevated privileges or crash the system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Deploy the latest stable Linux kernel that incorporates the fix for hp‑bioscfg token handling, replacing kmemdup with kstrndup. This is the official vendor remediation for the vulnerability.
  • If immediate kernel upgrade is not possible, restrict use of the hp‑bioscfg utility to administrators and avoid supplying untrusted data as authentication tokens, thereby limiting the attack surface.
  • After applying the patch, monitor kernel logs for crashes or segmentation faults that may indicate the bug has been triggered, and verify that the system remains stable under normal operation.

Generated by OpenCVE AI on November 30, 2026 at 16:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-122
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: NUL-terminate the SPM auth token auth_token_store() copies the token with kmemdup(), which does not NUL terminate it, but hp_calculate_security_buffer() and hp_populate_security_buffer() use it as a C string and read past the allocation. A lone newline (echo > auth_token) is worse: kmemdup() of 0 bytes returns ZERO_SIZE_PTR, which passes the NULL checks, so a later attribute write passes it to strlen(). A userspace replica of the two helpers under ASan reports a heap buffer overflow in hp_calculate_security_buffer() for the unterminated token and a fault at address 0x10 for the lone newline, and is clean with this change. The token is a string, so copy it with kstrndup(), which always NUL terminates and allocates at least one byte.
Title platform/x86: hp-bioscfg: NUL-terminate the SPM auth token
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM