{"api_version":"1","generated_at":"2026-12-03T04:50:46+00:00","cve":"CVE-2026-142839","urls":{"html":"https://cve.report/CVE-2026-142839","api":"https://cve.report/api/cve/CVE-2026-142839.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142839","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142839"},"summary":{"title":"platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:20","updated_at":"2026-12-03 04:18:20"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/de1c1e4194f08b5f63df004e7172ea797b02a8df","name":"https://git.kernel.org/stable/c/de1c1e4194f08b5f63df004e7172ea797b02a8df","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/14954f322392d37c864188f095f1707f5c9a8e5d","name":"https://git.kernel.org/stable/c/14954f322392d37c864188f095f1707f5c9a8e5d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6dea092b261f04d632411c2be52d13190f5f67b1","name":"https://git.kernel.org/stable/c/6dea092b261f04d632411c2be52d13190f5f67b1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a61a396669a052b6484057cc7425aa65d3fe7f24","name":"https://git.kernel.org/stable/c/a61a396669a052b6484057cc7425aa65d3fe7f24","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/56b4fa4d435e1ec52257692289cef9bff1bc79ce","name":"https://git.kernel.org/stable/c/56b4fa4d435e1ec52257692289cef9bff1bc79ce","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2331fbac2db151ca69d475d8f2bbdee121249a13","name":"https://git.kernel.org/stable/c/2331fbac2db151ca69d475d8f2bbdee121249a13","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d2f87a7eb3de026deb7ddc859758a0ca27cc88ed","name":"https://git.kernel.org/stable/c/d2f87a7eb3de026deb7ddc859758a0ca27cc88ed","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d904db0a4d32bd49cff2476bf11cf0715c444804","name":"https://git.kernel.org/stable/c/d904db0a4d32bd49cff2476bf11cf0715c444804","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142839","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142839","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d a61a396669a052b6484057cc7425aa65d3fe7f24 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d 2331fbac2db151ca69d475d8f2bbdee121249a13 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d 14954f322392d37c864188f095f1707f5c9a8e5d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d de1c1e4194f08b5f63df004e7172ea797b02a8df git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d 56b4fa4d435e1ec52257692289cef9bff1bc79ce git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d d904db0a4d32bd49cff2476bf11cf0715c444804 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d d2f87a7eb3de026deb7ddc859758a0ca27cc88ed git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d 6dea092b261f04d632411c2be52d13190f5f67b1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.39","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.39 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/platform/x86/hp/hp-wmi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a61a396669a052b6484057cc7425aa65d3fe7f24","status":"affected","version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","versionType":"git"},{"lessThan":"2331fbac2db151ca69d475d8f2bbdee121249a13","status":"affected","version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","versionType":"git"},{"lessThan":"14954f322392d37c864188f095f1707f5c9a8e5d","status":"affected","version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","versionType":"git"},{"lessThan":"de1c1e4194f08b5f63df004e7172ea797b02a8df","status":"affected","version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","versionType":"git"},{"lessThan":"56b4fa4d435e1ec52257692289cef9bff1bc79ce","status":"affected","version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","versionType":"git"},{"lessThan":"d904db0a4d32bd49cff2476bf11cf0715c444804","status":"affected","version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","versionType":"git"},{"lessThan":"d2f87a7eb3de026deb7ddc859758a0ca27cc88ed","status":"affected","version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","versionType":"git"},{"lessThan":"6dea092b261f04d632411c2be52d13190f5f67b1","status":"affected","version":"c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/platform/x86/hp/hp-wmi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.39"},{"lessThan":"2.6.39","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.39","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.39","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.39","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.39","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"2.6.39","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"2.6.39","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"2.6.39","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.39","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:20:51.551Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142839","datePublished":"2026-12-03T03:20:51.551Z","dateReserved":"2026-12-03T03:10:28.332Z","dateUpdated":"2026-12-03T03:20:51.551Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:20","lastModifiedDate":"2026-12-03 04:18:20","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142839","Ordinal":"1","Title":"platform/x86: hp-wmi: fix heap OOB read and memory corruption in","CVE":"CVE-2026-142839","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142839","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"platform/x86: hp-wmi: fix heap OOB read and memory corruption in"}]}}}