AZL-116758: CVE-2026-100086 affecting package kernel 6.6.161.1-1
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.
- Compensating control
In hp-bioscfg, change auth_token_store() to copy the SPM auth token with kstrndup() so it is NUL-terminated and allocates at least one byte.
Event History
Frequently Asked Questions
What access is needed to trigger this issue?
An attacker or local user needs the ability to write an authentication token through the hp-bioscfg auth_token attribute. The vulnerable path is reached later when an attribute write uses that stored token.
Are empty token values particularly dangerous?
Yes. Supplying only a newline results in a zero-byte allocation represented by ZERO_SIZE_PTR; subsequent use by strlen() can fault at address 0x10. A non-NUL-terminated token can instead cause an out-of-bounds read and heap buffer overflow.
What is the practical mitigation if an update cannot be applied immediately?
Restrict write access to the hp-bioscfg auth_token attribute and avoid submitting empty or newline-only tokens. Ensure token values are NUL-terminated before they are stored or used.