CVE-2026-142839

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142840In the Linux kernel, the following vulnerability has been resolved: mm/zswap: publish the initial pool with list_add_rcu() zswap_setup() pCVE-2026-142841In the Linux kernel, the following vulnerability has been resolved: ext4: skip extra isize expansion while unmounting syzbot reports a WARCVE-2026-142842In the Linux kernel, the following vulnerability has been resolved: ext4: fix fast commit replay failing on a read-only mount A filesystemCVE-2026-142843In the Linux kernel, the following vulnerability has been resolved: spi: stm32: fix double free of SRAM buffer on MDMA fallback When the "CVE-2026-142844In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt76x02: validate TX-status rate index before mac80211 handCVE-2026-142845In the Linux kernel, the following vulnerability has been resolved: mm/list_lru: don't copy stale shrinker id from non-memcg-aware shrinkerCVE-2026-142846In the Linux kernel, the following vulnerability has been resolved: mm/page_table_check: skip zero pages page_table_check_set() accounts pCVE-2026-142847In the Linux kernel, the following vulnerability has been resolved: mm/page_isolation: fix UBSAN shift-out-of-bounds warning Patch series CVE-2026-142848In the Linux kernel, the following vulnerability has been resolved: floppy: don't store a stack buffer in timeout_message request_done() fCVE-2026-142849In the Linux kernel, the following vulnerability has been resolved: xfarray: don't crash when sorting if array element crosses a folio LOLCVE-2026-142850In the Linux kernel, the following vulnerability has been resolved: crypto: nx - validate 'ignore' before subtracting in decompress The deCVE-2026-142851In the Linux kernel, the following vulnerability has been resolved: media: em28xx: fix inverted tuner capability check for VBI device Comm
CVE-2026-142839: Unscored | Vulnix