UBUNTU-CVE-2026-81012: High severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: fix off-by-one write in hpgetstringfrombuffer() hpgetstringfrombuffer() clamps the converted string length against the destination buffer size with "size > dstsize", so when the converted length is exactly equal to dstsize, convdstsize is left at dstsize and the unconditional NUL terminator write dst[convdstsize] = 0; lands one byte past the destination buffer. This is the same shape of bug as the previously fixed off-by-one in hpconverthexstrtostr(): the buffer is sized correctly for the content, but the terminator write is never checked against that size. Fix by changing the comparison to ">=" so convdstsize is always left with room for the terminator. All fixed-size destinations that reach this function (path[512], currentvalue[512], currentpassword/currentvalue[64], and the per-entry buffers in encodings[][512] and prerequisites[][512]) are affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
In the Linux kernel platform/x86 hp-bioscfg function hp_get_string_from_buffer(), change the destination-size comparison from ">" to ">=" so conv_dst_size always leaves room for the terminating NUL byte.