CVE-2026-100086: platform/x86: hp-bioscfg: NUL-terminate the SPM auth token
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: hp-bioscfg: NUL-terminate the SPM auth token
authtokenstore() copies the token with kmemdup(), which does not NUL terminate it, but hpcalculatesecuritybuffer() and hppopulatesecuritybuffer() use it as a C string and read past the allocation.
A lone newline (echo > authtoken) is worse: kmemdup() of 0 bytes returns ZEROSIZEPTR, 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 hpcalculatesecuritybuffer() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In hp-bioscfg, change auth_token_store() to copy the SPM auth token with kstrndup() instead of kmemdup(), ensuring it is NUL-terminated.
Event History
Frequently Asked Questions
What access or interaction is needed to trigger the flaw?
The vulnerable path is reached when userspace writes an SPM authentication token to the auth_token attribute and a later attribute write causes the driver to process that token in its security-buffer helpers. The description does not establish whether an unprivileged user can perform those writes.
Which token inputs are problematic?
A token copied with kmemdup() is not NUL-terminated, so using it as a C string can read beyond its allocation. Writing only a newline is especially dangerous because it produces a zero-length allocation that can later be passed to strlen().
What can be done while a fix is not available?
Avoid writing to the auth_token attribute where possible, especially do not submit a lone newline as the token. The resolved change uses kstrndup() so that even an empty token has allocated, NUL-terminated storage.