Vulnerability record
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
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…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources