EnvMap GitHub

CVE-2026-142839

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

EPSS 0.29%Received

Description

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.

In the words of the organisation that published it (Linux).

Severity

  • 7.0 High · CVSS 3.1 from 416baaa9-dc9f-4396-8d5f-8c081fb06d67 · CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

  • Linux: from c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d before a61a396669a052b6484057cc742; from c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d before 2331fbac2db151ca69d475d8f2b; from c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d before 14954f322392d37c864188f095f; from c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d before de1c1e4194f08b5f63df004e717; 2.6.39

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.29% chance of exploitation in the next 30 days, higher than 23% of all CVEs (as of 4 December 2026).

References

Record

Published04:18 UTC, 3 December 2026
Last changed04:17 UTC, 4 December 2026
NVD statusReceived
Published byLinux

CVE-2026-142839 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.