CVE-2026-142839: platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()

Published Dec 3, 2026
·
Updated

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

platform/x86: hp-wmi: fix heap OOB read and memory corruption in hpwmiperformquery()

hpwmiperformquery() evaluates an ACPI WMI method and expects a struct biosreturn header in the returned buffer. However, it only checks that the ACPI object type is ACPITYPEBUFFER without verifying that obj->buffer.length is at least sizeof(biosreturn) (8 bytes).

If the firmware or ACPI method returns a buffer shorter than 8 bytes:

1. biosreturn->returncode at offset 4 reads out of bounds from the allocated ACPI buffer slab.

2. If returncode evaluates to 0 and outsize is non-zero, (int)(obj->buffer.length - sizeof(biosreturn)) evaluates to a negative integer (e.g. -8 for a 0-length buffer). actualoutsize is set to this negative value and passed to memcpy(buffer, ..., actualoutsize), where the signed negative value is cast to sizet (e.g. 0xfffffffffffffff8), attempting to copy ~18 Exabytes and triggering an immediate kernel crash. Additionally, memset(buffer + actualoutsize, ...) performs an out-of-bounds write before buffer.

Fix this by ensuring obj->buffer.length is at least sizeof(biosreturn) before accessing the return code, and compute actualoutsize safely using mint(u32, ...), which is sound specifically because the guard above already rules out obj->buffer.length being smaller than sizeof(biosreturn) by the time that subtraction runs.

Affected Software

8 affected componentsFixes available
Linux Linux kernel
linux/kernel>=2.6.39<5.10.275
5.10.275
linux/kernel>=5.11.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.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 5.10.275
  2. Upgrade

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

    Fixed in 5.15.226
  3. Upgrade

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

    Fixed in 6.1.193
  4. Upgrade

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

    Fixed in 6.6.163
  5. Upgrade

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

    Fixed in 6.12.117
  6. Upgrade

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

    Fixed in 6.18.63
  7. Upgrade

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

    Fixed in 7.3.4
  8. Compensating control

    In Linux kernel hp_wmi_perform_query(), verify obj->buffer.length is at least sizeof(*bios_return) (8 bytes) before reading bios_return->return_code, then compute actual_outsize safely using min_t(u32, ...).

Event History

Dec 3, 2026
CVE Published
via MITRE·03:20 AM
Data Sourced
via MITRE·03:20 AM
Description
Data Sourced
via OSV·03:20 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems running the Linux kernel hp-wmi driver are affected when hp_wmi_perform_query() evaluates an ACPI WMI method and processes its returned buffer.

2

What condition is required to trigger the fault?

The ACPI WMI method must return an object of type ACPI buffer whose length is less than the 8-byte bios_return header expected by the driver. A short response can cause an out-of-bounds read and, under the described return-code and output-size conditions, memory corruption or an immediate kernel crash.

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