CVE-2026-138829: platform/x86: hp-bioscfg: fix 16-byte heap overflow for empty auth token

Published Nov 30, 2026
·
Updated

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

5 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.6.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  5. Compensating control

    In the Linux kernel’s platform/x86 hp-bioscfg code, remove the empty-string special-case early return from hp_calculate_security_buffer().

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description
Data Sourced
via OSV·01:25 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel hp-bioscfg driver are exposed when a writable BIOS attribute is changed while the HP admin/setup password is unset. The empty password is the default state until an admin password is configured.

2

What action triggers the overflow?

Writing to a writable BIOS attribute causes the driver to process the current admin/setup password as an authentication token. When that token is empty, the driver allocates 4 bytes but writes 20 bytes, overflowing the heap buffer by 16 bytes.

3

What can be done if the kernel fix cannot be applied immediately?

Avoid writes to writable BIOS attributes through hp-bioscfg while no admin/setup password is configured. Configuring a non-empty admin/setup password avoids the empty-token condition described.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203