{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-81012","id":"CVE-2026-81012","title":"platform/x86: hp-bioscfg: fix off-by-one write in hp_get_string_from_buffer()","description":"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 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","descriptionLong":"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 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.","published":"2026-09-11T19:43:02.082Z","updated":"2026-11-18T19:57:39.187051013Z","reserved":"2026-08-26T14:34:25.813Z","status":"Received","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a34fc329b1895fc8a6eb12099adc47009421ba6a","lessThan":"8f5aa1506cdddea6b33584c2445b9ce99eeddb64","status":"affected","versionType":"git"},{"version":"a34fc329b1895fc8a6eb12099adc47009421ba6a","lessThan":"3cc772d0154799961f032e5a992d4a50523e291a","status":"affected","versionType":"git"},{"version":"a34fc329b1895fc8a6eb12099adc47009421ba6a","lessThan":"b15b334fbc3c0c46440f8a892ebf62164fca23d6","status":"affected","versionType":"git"},{"version":"a34fc329b1895fc8a6eb12099adc47009421ba6a","lessThan":"ddf98cf33529714b3ba1a158afb1db5b0f759a1a","status":"affected","versionType":"git"},{"version":"a34fc329b1895fc8a6eb12099adc47009421ba6a","lessThan":"dc03f05e419f3460342fb7564884f244622634b6","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.6.157","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.109","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.50","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.4","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/8f5aa1506cdddea6b33584c2445b9ce99eeddb64","tags":["web"]},{"url":"https://git.kernel.org/stable/c/3cc772d0154799961f032e5a992d4a50523e291a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/b15b334fbc3c0c46440f8a892ebf62164fca23d6","tags":["web"]},{"url":"https://git.kernel.org/stable/c/ddf98cf33529714b3ba1a158afb1db5b0f759a1a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/dc03f05e419f3460342fb7564884f244622634b6","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81012.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81012","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00142,"epssPercentile":0.03582,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-81012","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81012","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-81012","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-81012","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}