PT-2026-166562

CVE-2026-142839

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp wmi perform query()
hp wmi perform query() evaluates an ACPI WMI method and expects a struct bios return header in the returned buffer. However, it only checks that the ACPI object type is ACPI TYPE BUFFER without verifying that obj->buffer.length is at least sizeof(*bios return) (8 bytes).
If the firmware or ACPI method returns a buffer shorter than 8 bytes:
  1. bios return->return code at offset 4 reads out of bounds from the allocated ACPI buffer slab.
  2. If return code evaluates to 0 and outsize is non-zero, (int)(obj->buffer.length - sizeof(*bios return)) evaluates to a negative integer (e.g. -8 for a 0-length buffer). actual outsize is set to this negative value and passed to memcpy(buffer, ..., actual outsize), where the signed negative value is cast to size t (e.g. 0xfffffffffffffff8), attempting to copy ~18 Exabytes and triggering an immediate kernel crash. Additionally, memset(buffer + actual outsize, ...) performs an out-of-bounds write before buffer.
Fix this by ensuring obj->buffer.length is at least sizeof(*bios return) before accessing the return code, and compute actual outsize safely using min t(u32, ...), which is sound specifically because the guard above already rules out obj->buffer.length being smaller than sizeof(*bios return) by the time that subtraction runs.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾