# CVE-2026-142839

- Bağlantı: https://www.allsafe.com.tr/cve-2026-142839/
- Yayımlanma: 2026-12-03T07:18:20+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-142839)
