GHSA-XWGF-J92P-3437

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

platform/x86: hp-bioscfg: fix slab-out-of-bounds write in hp_convert_hexstr_to_str()

hp_convert_hexstr_to_str() decodes an ACPI string made up of space-separated ASCII hex-byte tokens of the form "0xHH". For example, the four-byte input "0x41" decodes to the single character 'A', and the nine-byte input "0x09 0x41" decodes to "\tA": each token is read in a five-byte step (four characters for the token, one for the trailing delimiter), and produces one output byte, or two if that byte is '\', '\r', '\n', or '\t', which are written back out as a backslash followed by the matching letter.

The output buffer is sized with kmalloc(input_len, GFP_KERNEL), the raw encoded length of the input, not the decoded length. For well-formed input this is generous, since five input bytes never decode to more than two output bytes. But input_len comes directly from the ACPI string length reported by firmware and isn't guaranteed to respect the five-byte encoding, so a short input_len can undersize the allocation. With input_len == 1, only one byte is allocated, yet decoding still produces at least one output byte plus the NUL terminator written unconditionally afterwards, so two bytes are needed. That terminator write then lands one byte past the end of the allocation.

KASAN caught exactly this during BIOS attribute enumeration on boot, triggered by a one-byte encoded input value:

BUG: KASAN: slab-out-of-bounds in hp_convert_hexstr_to_str+0x6d8/0x710 [hp_bioscfg] Write of size 1 at addr ffff8881032e5d81 by task (udev-worker)/520 The buggy address is located 0 bytes to the right of allocated 1-byte region [ffff8881032e5d80, ffff8881032e5d81)

Size the allocation to the worst-case decoded length instead of the raw input length: two output bytes for every five-byte input chunk (DIV_ROUND_UP(input_len, 5)), plus one byte for the terminator.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139010"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:18:04Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: hp-bioscfg: fix slab-out-of-bounds write in hp_convert_hexstr_to_str()\n\nhp_convert_hexstr_to_str() decodes an ACPI string made up of\nspace-separated ASCII hex-byte tokens of the form \"0xHH\". For\nexample, the four-byte input \"0x41\" decodes to the single\ncharacter \u0027A\u0027, and the nine-byte input \"0x09 0x41\" decodes to\n\"\\tA\": each token is read in a five-byte step (four characters for\nthe token, one for the trailing delimiter), and produces one output\nbyte, or two if that byte is \u0027\\\\\u0027, \u0027\\r\u0027, \u0027\\n\u0027, or \u0027\\t\u0027, which are\nwritten back out as a backslash followed by the matching letter.\n\nThe output buffer is sized with kmalloc(input_len, GFP_KERNEL), the\nraw encoded length of the input, not the decoded length. For\nwell-formed input this is generous, since five input bytes never\ndecode to more than two output bytes. But input_len comes directly\nfrom the ACPI string length reported by firmware and isn\u0027t\nguaranteed to respect the five-byte encoding, so a short input_len\ncan undersize the allocation. With input_len == 1, only one byte is\nallocated, yet decoding still produces at least one output byte\nplus the NUL terminator written unconditionally afterwards, so two\nbytes are needed. That terminator write then lands one byte past\nthe end of the allocation.\n\nKASAN caught exactly this during BIOS attribute enumeration on\nboot, triggered by a one-byte encoded input value:\n\nBUG: KASAN: slab-out-of-bounds in hp_convert_hexstr_to_str+0x6d8/0x710 [hp_bioscfg]\nWrite of size 1 at addr ffff8881032e5d81 by task (udev-worker)/520\nThe buggy address is located 0 bytes to the right of\nallocated 1-byte region [ffff8881032e5d80, ffff8881032e5d81)\n\nSize the allocation to the worst-case decoded length instead of the\nraw input length: two output bytes for every five-byte input chunk\n(DIV_ROUND_UP(input_len, 5)), plus one byte for the terminator.",
  "id": "GHSA-xwgf-j92p-3437",
  "modified": "2026-11-30T15:32:13Z",
  "published": "2026-11-30T15:32:13Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139010"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/43562e40e0b2c70bffbd7cada5a176891a49da9d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6a6f3051e705b5c8facb0bf5984d5b981509e0b7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a7e2d7c8aef36cfa6042c9152756c89ca2f853ff"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bce7b522aeb3a0494230f68b0f66e2873e4b6aa6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d857f6a24c7d29c564c625a896ee46fee0682746"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.