{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c3021ea1beeeb1aa8a92fa6946a6e25fc55f171d"
            },
            {
              "fixed": "a61a396669a052b6484057cc7425aa65d3fe7f24"
            },
            {
              "fixed": "2331fbac2db151ca69d475d8f2bbdee121249a13"
            },
            {
              "fixed": "14954f322392d37c864188f095f1707f5c9a8e5d"
            },
            {
              "fixed": "de1c1e4194f08b5f63df004e7172ea797b02a8df"
            },
            {
              "fixed": "56b4fa4d435e1ec52257692289cef9bff1bc79ce"
            },
            {
              "fixed": "d904db0a4d32bd49cff2476bf11cf0715c444804"
            },
            {
              "fixed": "d2f87a7eb3de026deb7ddc859758a0ca27cc88ed"
            },
            {
              "fixed": "6dea092b261f04d632411c2be52d13190f5f67b1"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.39"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142839.json"
  },
  "details": "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-\u003ebuffer.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-\u003ereturn_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-\u003ebuffer.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-\u003ebuffer.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-\u003ebuffer.length being smaller than\nsizeof(*bios_return) by the time that subtraction runs.",
  "id": "CVE-2026-142839",
  "modified": "2026-12-03T04:45:41.820605024Z",
  "published": "2026-12-03T03:20:51.551Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/14954f322392d37c864188f095f1707f5c9a8e5d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2331fbac2db151ca69d475d8f2bbdee121249a13"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/56b4fa4d435e1ec52257692289cef9bff1bc79ce"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6dea092b261f04d632411c2be52d13190f5f67b1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a61a396669a052b6484057cc7425aa65d3fe7f24"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d2f87a7eb3de026deb7ddc859758a0ca27cc88ed"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d904db0a4d32bd49cff2476bf11cf0715c444804"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/de1c1e4194f08b5f63df004e7172ea797b02a8df"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142839.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142839"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmi_perform_query()"
}