CVE-2026-139010: platform/x86: hp-bioscfg: fix slab-out-of-bounds write in hp_convert_hexstr_to_str()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

platform/x86: hp-bioscfg: fix slab-out-of-bounds write in hpconverthexstrtostr()

hpconverthexstrtostr() decodes an ACPI string made up of space-separated ASCII hex-byte tokens of the form "0xHH". For example, the four-byte input "0x41" decodes to the single character 'A', and the nine-byte input "0x09 0x41" decodes to "\tA": each token is read in a five-byte step (four characters for the token, one for the trailing delimiter), and produces one output byte, or two if that byte is '\\', '\r', '\n', or '\t', which are written back out as a backslash followed by the matching letter.

The output buffer is sized with kmalloc(inputlen, GFPKERNEL), the raw encoded length of the input, not the decoded length. For well-formed input this is generous, since five input bytes never decode to more than two output bytes. But inputlen comes directly from the ACPI string length reported by firmware and isn't guaranteed to respect the five-byte encoding, so a short inputlen can undersize the allocation. With inputlen == 1, only one byte is allocated, yet decoding still produces at least one output byte plus the NUL terminator written unconditionally afterwards, so two bytes are needed. That terminator write then lands one byte past the end of the allocation.

KASAN caught exactly this during BIOS attribute enumeration on boot, triggered by a one-byte encoded input value:

BUG: KASAN: slab-out-of-bounds in hpconverthexstrtostr+0x6d8/0x710 [hpbioscfg] Write of size 1 at addr ffff8881032e5d81 by task (udev-worker)/520 The buggy address is located 0 bytes to the right of allocated 1-byte region [ffff8881032e5d80, ffff8881032e5d81)

Size the allocation to the worst-case decoded length instead of the raw input length: two output bytes for every five-byte input chunk (DIVROUNDUP(inputlen, 5)), plus one byte for the terminator.

Affected Software

8 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
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.4-1
7.3.4-1
debian/linux
6.12.117-17.3.4-1

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. Upgrade

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

    Fixed in 6.12.117-1
  6. Upgrade

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

    Fixed in 7.3.4-1
  7. Upgrade

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

    Fixed in 6.12.117-1Fixed in 7.3.4-1
  8. Compensating control

    In hp_convert_hexstr_to_str(), size the output allocation for the worst-case decoded length—two output bytes per five-byte input chunk, plus space for the NUL terminator—instead of allocating input_len bytes.

Event History

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

Frequently Asked Questions

1

What systems are exposed to this issue?

Systems running the Linux kernel with the hp-bioscfg platform/x86 driver and firmware that supplies a malformed ACPI string to hp_convert_hexstr_to_str() are exposed. The affected input length is reported by firmware rather than validated as a conforming sequence of five-byte hex tokens.

2

What does an attacker need to trigger the out-of-bounds write?

The available information indicates that triggering requires control over, or the ability to cause, malformed ACPI string data supplied by firmware. A short reported input length can cause kmalloc() to allocate too little memory while decoding still writes output bytes and a terminating NUL.

3

Is valid, well-formed ACPI input affected?

For well-formed space-separated 0xHH tokens, the allocated buffer is larger than needed because each five input bytes decode to at most two output bytes. The issue arises when firmware reports an input length that does not respect that encoding.

4

How can I tell whether the fix is present?

Check whether your kernel includes one of the referenced stable commits: d857f6a24c7d29c564c625a896ee46fee0682746, bce7b522aeb3a0494230f68b0f66e2873e4b6aa6, or a7e2d7c8aef36cfa6042c9152756c89ca2f853ff.

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