{"id":"CVE-2026-81012","title":"platform/x86: hp-bioscfg: fix off-by-one write in hp_get_string_from_buffer()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: hp-bioscfg: fix off-by-one write in hp_get_string_from_buffer()\n\nhp_get_string_from_buffer() clamps the converted string length against\nthe destination bu…","severity":"high","cvss":8.4,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvssSource":"cna","cwe":["CWE-193"],"vendor":"Linux","product":"Linux","affected":["Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < 8f5aa1506cdddea6b33584c2445b9ce99eeddb64","Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < 3cc772d0154799961f032e5a992d4a50523e291a","Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < b15b334fbc3c0c46440f8a892ebf62164fca23d6","Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < ddf98cf33529714b3ba1a158afb1db5b0f759a1a","Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < dc03f05e419f3460342fb7564884f244622634b6","Linux 6.6"],"published":"2026-09-11","updated":"2026-10-19","sourceUpdated":"2026-10-19T08:46:37.440Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-81012","references":[{"url":"https://git.kernel.org/stable/c/8f5aa1506cdddea6b33584c2445b9ce99eeddb64"},{"url":"https://git.kernel.org/stable/c/3cc772d0154799961f032e5a992d4a50523e291a"},{"url":"https://git.kernel.org/stable/c/b15b334fbc3c0c46440f8a892ebf62164fca23d6"},{"url":"https://git.kernel.org/stable/c/ddf98cf33529714b3ba1a158afb1db5b0f759a1a"},{"url":"https://git.kernel.org/stable/c/dc03f05e419f3460342fb7564884f244622634b6"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-81012.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-81012"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2532131"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-81012"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81012"},{"url":"https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-81012.mbox"}],"tags":["cve.org","csaf","vex","red-hat","score-dispute"],"epss":0.00142,"epssPercentile":0.03449,"scores":{"cna":8.4,"vendor":5.5},"ingestedAt":"2026-09-14T15:23:07.453Z","slug":"CVE-2026-81012","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: hp-bioscfg: fix off-by-one write in hp_get_string_from_buffer()\n\nhp_get_string_from_buffer() clamps the converted string length against\nthe destination buffer size with \"size > dst_size\", so when the\nconverted length is exactly equal to dst_size, conv_dst_size is left\nat dst_size and the unconditional NUL terminator write\n\n\tdst[conv_dst_size] = 0;\n\nlands one byte past the destination buffer. This is the same shape of\nbug as the previously fixed off-by-one in hp_convert_hexstr_to_str():\nthe buffer is sized correctly for the content, but the terminator\nwrite is never checked against that size.\n\nFix by changing the comparison to \">=\" so conv_dst_size is always left\nwith room for the terminator.\n\nAll fixed-size destinations that reach this function (path[512],\ncurrent_value[512], current_password/current_value[64], and the\nper-entry buffers in encodings[][512] and prerequisites[][512]) are\naffected.\n\n## Affected\n\n- `Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < 8f5aa1506cdddea6b33584c2445b9ce99eeddb64`\n- `Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < 3cc772d0154799961f032e5a992d4a50523e291a`\n- `Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < b15b334fbc3c0c46440f8a892ebf62164fca23d6`\n- `Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < ddf98cf33529714b3ba1a158afb1db5b0f759a1a`\n- `Linux >= a34fc329b1895fc8a6eb12099adc47009421ba6a < dc03f05e419f3460342fb7564884f244622634b6`\n- `Linux 6.6`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **Red Hat VEX** · Moderate · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-81012.json)","depth":"twilight","depthScore":46,"depthScoreParts":{"impact":46.2,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[{"seq":224770,"id":"CVE-2026-81012","ts":1792401532675,"field":"cvss","old":"5.5","new":"8.4"},{"seq":224769,"id":"CVE-2026-81012","ts":1792401532675,"field":"severity","old":"medium","new":"high"},{"seq":204130,"id":"CVE-2026-81012","ts":1789490231894,"field":"cvss","old":"8.4","new":"5.5"},{"seq":204129,"id":"CVE-2026-81012","ts":1789490231894,"field":"severity","old":"high","new":"medium"},{"seq":183564,"id":"CVE-2026-81012","ts":1789356675904,"field":"cvss","old":"8.4","new":"5.1"},{"seq":183563,"id":"CVE-2026-81012","ts":1789356675904,"field":"severity","old":"high","new":"medium"},{"seq":153210,"id":"CVE-2026-81012","ts":1789285349561,"field":"cvss","old":null,"new":"8.4"},{"seq":153209,"id":"CVE-2026-81012","ts":1789285349561,"field":"severity","old":"none","new":"high"},{"seq":147734,"id":"CVE-2026-81012","ts":1789270212084,"field":"cvss","old":null,"new":"5.1"},{"seq":147733,"id":"CVE-2026-81012","ts":1789270212084,"field":"severity","old":"none","new":"medium"},{"seq":109488,"id":"CVE-2026-81012","ts":1789183732107,"field":"cvss","old":null,"new":"5.1"},{"seq":109487,"id":"CVE-2026-81012","ts":1789183732107,"field":"severity","old":"none","new":"medium"}]}