{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142839","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.332Z","datePublished":"2026-12-03T03:20:51.551Z","dateUpdated":"2026-12-04T03:25:16.023Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:25:16.023Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()\n\nhp_wmi_perform_query() evaluates an ACPI WMI method and expects a\nstruct bios_return header in the returned buffer. However, it only\nchecks that the ACPI object type is ACPI_TYPE_BUFFER without verifying\nthat obj->buffer.length is at least sizeof(*bios_return) (8 bytes).\n\nIf the firmware or ACPI method returns a buffer shorter than 8 bytes:\n\n1. bios_return->return_code at offset 4 reads out of bounds from the\n   allocated ACPI buffer slab.\n\n2. If return_code evaluates to 0 and outsize is non-zero,\n   (int)(obj->buffer.length - sizeof(*bios_return)) evaluates to a\n   negative integer (e.g. -8 for a 0-length buffer). actual_outsize is\n   set to this negative value and passed to memcpy(buffer, ...,\n   actual_outsize), where the signed negative value is cast to\n   size_t (e.g. 0xfffffffffffffff8), attempting to copy ~18 Exabytes\n   and triggering an immediate kernel crash. Additionally,\n   memset(buffer + actual_outsize, ...) performs an out-of-bounds\n   write before buffer.\n\nFix this by ensuring obj->buffer.length is at least sizeof(*bios_return)\nbefore accessing the return code, and compute actual_outsize safely\nusing min_t(u32, ...), which is sound specifically because the guard\nabove already rules out obj->buffer.length being smaller than\nsizeof(*bios_return) by the time that subtraction runs."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - hp_wmi_perform_query() parses the buffer returned by wmi_evaluate_method(HPWMI_BIOS_GUID) (ACPI WMPV/WHCM), not bytes from a remote peer. A local user reaches it by reading world-readable sysfs such as display_show() to hp_wmi_read_int(), or hp_wmi_hwmon_read() to hp_wmi_get_fan_speed(), both with outsize 4.\nAC:H - The crash needs obj->buffer.length < sizeof(struct bios_return) (8). Stock HP ASL (WVPO/WHCM/HWMC) always returns Buffer(0x08 + PVSZ) with PVSZ in {0, 4, 0x80, 0x400, 0x1000}, so the length is at least 8. A sysfs read does not set that length; only firmware that already returns a shorter buffer does.\nPR:L - display_show(), hddtemp_show(), dock_show() and postcode_show() are DEVICE_ATTR_RO (mode 0444) and call hp_wmi_read_int() with no capability check. hp_wmi_hwmon_is_visible() exposes fan input as 0444 and hp_wmi_hwmon_read() calls hp_wmi_get_fan_speed(). Any unprivileged local user can invoke the query.\nUI:N - The attacker opens the platform sysfs attribute or hwmon fan file themselves. No mount and no action by another user is required to enter hp_wmi_perform_query().\nS:U - The bad copy stays inside the host kernel that runs hp-wmi. It does not cross a guest/host or IOMMU boundary; resulting privilege escalation stays in the same security authority.\nC:H - If the short buffer's return_code at bios_return offset 4 reads as 0, memcpy() copies (size_t)(int)(obj->buffer.length - 8) bytes from obj->buffer.pointer + 8, past the ACPI object, into the caller buffer. That read is not limited to a few bytes.\nI:H - That memcpy writes the unbounded size into the caller buffer. For hp_wmi_read_int() the destination is the stack local val, so the copy walks the stack through the saved return address. actual_outsize is negative, so the following memset also starts before the buffer.\nA:H - Casting the negative actual_outsize to size_t makes memcpy copy on the order of 2^64 bytes and oops. A zero-length ACPI buffer instead faults on bios_return->return_code at offset 4. Either path kills the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/hp/hp-wmi.c"],"versions":[{"version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","lessThan":"a61a396669a052b6484057cc7425aa65d3fe7f24","status":"affected","versionType":"git"},{"version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","lessThan":"2331fbac2db151ca69d475d8f2bbdee121249a13","status":"affected","versionType":"git"},{"version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","lessThan":"14954f322392d37c864188f095f1707f5c9a8e5d","status":"affected","versionType":"git"},{"version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","lessThan":"de1c1e4194f08b5f63df004e7172ea797b02a8df","status":"affected","versionType":"git"},{"version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","lessThan":"56b4fa4d435e1ec52257692289cef9bff1bc79ce","status":"affected","versionType":"git"},{"version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","lessThan":"d904db0a4d32bd49cff2476bf11cf0715c444804","status":"affected","versionType":"git"},{"version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","lessThan":"d2f87a7eb3de026deb7ddc859758a0ca27cc88ed","status":"affected","versionType":"git"},{"version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","lessThan":"6dea092b261f04d632411c2be52d13190f5f67b1","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/hp/hp-wmi.c"],"versions":[{"version":"2.6.39","status":"affected"},{"version":"0","lessThan":"2.6.39","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/a61a396669a052b6484057cc7425aa65d3fe7f24"},{"url":"https://git.kernel.org/stable/c/2331fbac2db151ca69d475d8f2bbdee121249a13"},{"url":"https://git.kernel.org/stable/c/14954f322392d37c864188f095f1707f5c9a8e5d"},{"url":"https://git.kernel.org/stable/c/de1c1e4194f08b5f63df004e7172ea797b02a8df"},{"url":"https://git.kernel.org/stable/c/56b4fa4d435e1ec52257692289cef9bff1bc79ce"},{"url":"https://git.kernel.org/stable/c/d904db0a4d32bd49cff2476bf11cf0715c444804"},{"url":"https://git.kernel.org/stable/c/d2f87a7eb3de026deb7ddc859758a0ca27cc88ed"},{"url":"https://git.kernel.org/stable/c/6dea092b261f04d632411c2be52d13190f5f67b1"}],"title":"platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()","x_generator":{"engine":"bippy-1.2.0"}}}}