CVE-2026-142839: Linux kernel · platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.0 High.
Data as of 5 Dec 2026, 13:40 UTC
Thin evidence
One scorer or none| CNA (Linux) | CVSS 3.1 | 7.0 |
|---|
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 3 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10linuxpkg:deb/ubuntu/linux?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-142839 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-142839 (opens in a new tab)
- git.kernel.org/stable/c/2331fbac2db151ca69d475d8f2bbdee121249a13 (opens in a new tab)
- git.kernel.org/stable/c/d904db0a4d32bd49cff2476bf11cf0715c444804 (opens in a new tab)
- git.kernel.org/stable/c/14954f322392d37c864188f095f1707f5c9a8e5d (opens in a new tab)
- git.kernel.org/stable/c/a61a396669a052b6484057cc7425aa65d3fe7f24 (opens in a new tab)
- git.kernel.org/stable/c/56b4fa4d435e1ec52257692289cef9bff1bc79ce (opens in a new tab)
- git.kernel.org/stable/c/6dea092b261f04d632411c2be52d13190f5f67b1 (opens in a new tab)
- git.kernel.org/stable/c/d2f87a7eb3de026deb7ddc859758a0ca27cc88ed (opens in a new tab)
- git.kernel.org/stable/c/de1c1e4194f08b5f63df004e7172ea797b02a8df (opens in a new tab)