CVE-2026-142839 platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()
linux linux: no CVSS score yet. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.
On this 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.
- EPSS
- 0.4% estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-12-03. A forecast for this CVE across the internet, not for your own systems.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Awaiting analysis
- Record from
- the NVD, synced
Fix and patched versions
- Linux Linux: fixed in 5.10.275
- Linux Linux: fixed in 5.15.226
- Linux Linux: fixed in 6.1.193
- Linux Linux: fixed in 6.6.163
- Linux Linux: fixed in 6.12.117
- Linux Linux: fixed in 6.18.63
- Linux Linux: fixed in 7.3.4
- Linux Linux: fixed in 7.4-rc1
- Debian: fixed package versions per release
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-142839 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-142839?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-142839?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-142839 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | 2.6.39 and later |
Fixed in
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 5.10 | 5.10.275 |
| Linux | 5.15 | 5.15.226 |
| Linux | 6.1 | 6.1.193 |
| Linux | 6.6 | 6.6.163 |
| Linux | 6.12 | 6.12.117 |
| Linux | 6.18 | 6.18.63 |
| Linux | 7.3 | 7.3.4 |
| Linux | later releases | 7.4-rc1 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | linux | no fix listed | DEBIAN-CVE-2026-142839 |
| Debian | 13 | linux | 6.12.117-1 | DEBIAN-CVE-2026-142839 |
| Debian | 14 | linux | 7.3.4-1 | DEBIAN-CVE-2026-142839 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
References
- https://git.kernel.org/stable/c/14954f322392d37c864188f095f1707f5c9a8e5d
- https://git.kernel.org/stable/c/2331fbac2db151ca69d475d8f2bbdee121249a13
- https://git.kernel.org/stable/c/56b4fa4d435e1ec52257692289cef9bff1bc79ce
- https://git.kernel.org/stable/c/6dea092b261f04d632411c2be52d13190f5f67b1
- https://git.kernel.org/stable/c/a61a396669a052b6484057cc7425aa65d3fe7f24
- https://git.kernel.org/stable/c/d2f87a7eb3de026deb7ddc859758a0ca27cc88ed
- https://git.kernel.org/stable/c/d904db0a4d32bd49cff2476bf11cf0715c444804
- https://git.kernel.org/stable/c/de1c1e4194f08b5f63df004e7172ea797b02a8df