CVE-2026-139010
publishedplatform/x86: hp-bioscfg: fix slab-out-of-bounds write in hp_convert_hexstr_to_str()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa34fc329b1895fc8a6eb12099adc47009421ba6a to < d857f6a24c7d29c564c625a896ee46fee0682746 · a34fc329b1895fc8a6eb12099adc47009421ba6a to < bce7b522aeb3a0494230f68b0f66e2873e4b6aa6 · a34fc329b1895fc8a6eb12099adc47009421ba6a to < a7e2d7c8aef36cfa6042c9152756c89ca2f853ff · a34fc329b1895fc8a6eb12099adc47009421ba6a to < 43562e40e0b2c70bffbd7cada5a176891a49da9d · a34fc329b1895fc8a6eb12099adc47009421ba6a to < 6a6f3051e705b5c8facb0bf5984d5b981509e0b7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a34fc329b1895fc8a6eb12099adc47009421ba6a to < d857f6a24c7d29c564c625a896ee46fee0682746 (affected · git)a34fc329b1895fc8a6eb12099adc47009421ba6a to < bce7b522aeb3a0494230f68b0f66e2873e4b6aa6 (affected · git)a34fc329b1895fc8a6eb12099adc47009421ba6a to < a7e2d7c8aef36cfa6042c9152756c89ca2f853ff (affected · git)a34fc329b1895fc8a6eb12099adc47009421ba6a to < 43562e40e0b2c70bffbd7cada5a176891a49da9d (affected · git)a34fc329b1895fc8a6eb12099adc47009421ba6a to < 6a6f3051e705b5c8facb0bf5984d5b981509e0b7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/43562e40e0b2c70bffbd7cada5a176891a49da9d
- https://git.kernel.org/stable/c/6a6f3051e705b5c8facb0bf5984d5b981509e0b7
- https://git.kernel.org/stable/c/a7e2d7c8aef36cfa6042c9152756c89ca2f853ff
- https://git.kernel.org/stable/c/bce7b522aeb3a0494230f68b0f66e2873e4b6aa6
- https://git.kernel.org/stable/c/d857f6a24c7d29c564c625a896ee46fee0682746
Provider assertions
1Linux · cna
platform/x86: hp-bioscfg: fix slab-out-of-bounds write in hp_convert_hexstr_to_str()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dcae34718d938aa25a437e48deff8b347434d77f8a4e05b3368208afe65b90c2
- Ingested
- 30 Nov 2026, 13:36:40 UTC
- Source record
- Official CVE record