Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46A26581229 for ; Fri, 11 Sep 2026 19:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156202; cv=none; b=BgjggqnUMo3JdjQeAqe4FxzhIqTBI0VkaXwTF8V/XZppxw2vgQKxHbAwuZpCSnh7FwfQQu/aOqYOmQEq7XsTn2krBxNpr9BrS6vwJPyzx+YsI7c8P50Amkzw8n+mdlJ/obYAnohOZZCT2dAv8ycvkHg+L8okt9l+IxyZ8LLLwtM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156202; c=relaxed/simple; bh=g5fg2pINB+rLvhWCTzB3IC7ClTzp2VBOvvlCGmYpQWc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Kd2k3nNqtdgwh79x9WlrWyH1NBUKcEriGzidew8JKCRGU0KPkI120YdX/8Trme4u4Tct2uC/Q6hXCwknAoGs5gBvLe9VkjyW1LgWjEaZY8tTkxU1e+C8V12+je1/yz/FduOOjZYKtkvzdtGOfCWyqH+7KAzkoZSkgbkSXmZMA3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tVGalecQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tVGalecQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8909F1F0089C; Fri, 11 Sep 2026 19:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156175; bh=IwXYLn8aq8k5Kd3zHptbo4HyBg4dJgk8LRyEzbZlNYU=; h=From:To:Cc:Subject:Date:Reply-To; b=tVGalecQ6R33fQNeE4BWJflagoTrQM11kcTLVs8oAXGDUV3ZbSRuHN4IknS5cXNjN iLQgdPWijG+enjGfyvQ2342ZHRSsnHHKYMxK3g+RBCsAomFsOLDz3cQSBcR6fLujDi z+F/L8ZClQMSFpXpGW0yBRgo12S209yEiuG8GoQE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-81012: platform/x86: hp-bioscfg: fix off-by-one write in hp_get_string_from_buffer() Date: Fri, 11 Sep 2026 21:41:58 +0200 Message-ID: <2026091153-CVE-2026-81012-1f3c@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3123; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MvZYTjme9BDOjDcCzAONnoi5hM+uYvrxwCKrpcLwuwU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIl2L51RfuzB/6e638juXFFtfYEmY+tm25W5dVN+aF jO+7EjdjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiISBDDXJGA/pOb9shEPrCY 3LTdM80urq/JmGHBda85s6bfDL3fFzg33SLy97unH3+UAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: fix off-by-one write in hp_get_string_from_buffer() hp_get_string_from_buffer() clamps the converted string length against the destination buffer size with "size > dst_size", so when the converted length is exactly equal to dst_size, conv_dst_size is left at dst_size and the unconditional NUL terminator write dst[conv_dst_size] = 0; lands one byte past the destination buffer. This is the same shape of bug as the previously fixed off-by-one in hp_convert_hexstr_to_str(): 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 conv_dst_size is always left with room for the terminator. All fixed-size destinations that reach this function (path[512], current_value[512], current_password/current_value[64], and the per-entry buffers in encodings[][512] and prerequisites[][512]) are affected. The Linux kernel CVE team has assigned CVE-2026-81012 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit a34fc329b1895fc8a6eb12099adc47009421ba6a and fixed in 6.12.109 with commit 3cc772d0154799961f032e5a992d4a50523e291a Issue introduced in 6.6 with commit a34fc329b1895fc8a6eb12099adc47009421ba6a and fixed in 6.18.50 with commit b15b334fbc3c0c46440f8a892ebf62164fca23d6 Issue introduced in 6.6 with commit a34fc329b1895fc8a6eb12099adc47009421ba6a and fixed in 7.2.4 with commit ddf98cf33529714b3ba1a158afb1db5b0f759a1a Issue introduced in 6.6 with commit a34fc329b1895fc8a6eb12099adc47009421ba6a and fixed in 7.3-rc1 with commit dc03f05e419f3460342fb7564884f244622634b6 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-81012 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/platform/x86/hp/hp-bioscfg/bioscfg.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3cc772d0154799961f032e5a992d4a50523e291a https://git.kernel.org/stable/c/b15b334fbc3c0c46440f8a892ebf62164fca23d6 https://git.kernel.org/stable/c/ddf98cf33529714b3ba1a158afb1db5b0f759a1a https://git.kernel.org/stable/c/dc03f05e419f3460342fb7564884f244622634b6