AZL-116764: CVE-2026-138829 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: hp-bioscfg: fix 16-byte heap overflow for empty auth token
hpcalculatesecuritybuffer() special-cases an empty authentication string and returns a fixed 4 bytes (sizeof(u16) 2). But hppopulatesecuritybuffer() does not special-case that same input: for any authentication string that does not start with BEAMPREFIX, including the empty string, it always builds "UTFPREFIX + authentication" and converts the result to UTF-16, writing a 2-byte length header plus 2 bytes per character of "<utf-16/>" (9 characters), 20 bytes total, regardless of how long "authentication" itself is.
The caller, hpsetattribute(), sizes its kmalloc() buffer using hpcalculatesecuritybuffer()'s return value, so for an empty authentication token it allocates 4 bytes for the security area but hppopulatesecuritybuffer() then writes 20 bytes into it, causing a 16-byte heap buffer overflow.
The authentication token used here is the current admin/setup password, which is an empty string by default until one is configured. Any write to a writable BIOS attribute while no admin password has been set reaches this path.
Fix by removing the special-case early return for an empty string in hpcalculatesecuritybuffer(). The generic calculation that follows already accounts for the UTFPREFIX correctly, which naturally yields the same 20 bytes that hppopulatesecuritybuffer() writes for an empty string, avoiding duplicate logic for special cases.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In hp_calculate_security_buffer(), remove the special-case early return for an empty authentication string so the generic calculation accounts for the UTF_PREFIX.
Event History
Frequently Asked Questions
Are systems using the default BIOS password configuration exposed?
Yes. The admin/setup password is an empty string by default until configured, and that empty authentication token triggers the undersized allocation and subsequent overflow.
What action reaches the vulnerable code path?
Any write to a writable BIOS attribute while no admin password has been configured reaches this path. The affected operation uses the current admin/setup password as its authentication token.
What can be done if the update cannot be applied immediately?
Configuring a non-empty BIOS admin/setup password prevents the specific empty-authentication-token condition described. Systems should also avoid writes to writable BIOS attributes while the password remains unset.
How can an administrator identify potentially affected systems?
Check whether the BIOS admin/setup password is unset and whether software performs writes to writable BIOS attributes. Systems meeting both conditions can reach the overflow path.