From mboxrd@z Thu Jan 1 00:00:00 1970 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 8E162579821 for ; Fri, 11 Sep 2026 19:49:33 +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=1789156197; cv=none; b=X12oEE7IIgE5KV1oGPjXLCUFCAPwjEsNHs27pk4xnBsSiFYVAK4UmHRaFhW0wN5rEQ+DgGwmMTio0VcZJIYXq/8Iut4q+dB2Ov9w9lkQHV8byJzVLEF1Nfhmrv3TBf+ry2hvi1sjOBkqyvKhu/L81Syy0a8VET9TM09B01PZI9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156197; c=relaxed/simple; bh=zyZ/xsPDueNAPe3v9t12g4s6/kwBXkyr1izvmxFEPvI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mkl9fT4fFVjd+NTsg+SL5G7yMTXZbkfUqFOflQzghMp+/FDuA9kK3Lr+YC3GbANHciKdyaj2zloDYP7twWRtiWFT10G44ILVqyOeKRV5JSagWKy79AftKPLXnUznkH7bIsFiub2Lyl8O2wVW7Z8LMLB6khqySADPNqk3ZgBB/fY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=h1eUSXjZ; 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="h1eUSXjZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 888B11F0089E; Fri, 11 Sep 2026 19:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156172; bh=0AOs86DduPaE6hksTdIYfQt8ZlMJIHN+P0dQFK6QVBA=; h=From:To:Cc:Subject:Date:Reply-To; b=h1eUSXjZ8kMqfgRv+4yuPRvk5md+V03Pqq2M73DkeKby14uJefefAf7n5nIGJhLcd rPzBpyuDczUDPe7ZkxDr83xD0/CEWbXus2GWzR5b+gsN7mXiiACZH3S4aVMat59+iP NaCIW3OVmZxx3nBQXGO4i97i3DehWkXZZ/aV5DT0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-81011: platform/x86: hp-bioscfg: pass validated element count to package parsers Date: Fri, 11 Sep 2026 21:41:57 +0200 Message-ID: <2026091153-CVE-2026-81011-cb92@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=3876; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ODwsnsTuk63fBob9HeQIYnbMCAxXxZuVuayivuElXsg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIl2TwlaHfWVevOg2b9Kbkt9fwlcI7NHVEWtxak4+b mxzpoi3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby8wDDgqZPn15fuRZW28R8 OfTDyoRo7U9mHxjmFxrmGn9KWCRUkGYZvJ/xN/+C+1IpAA== 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: pass validated element count to package parsers The per-type package parsers are handed the wrong element count. hp_init_bios_package_attribute() validates obj->package.count and then calls one of the five hp_populate_*_package_data() wrappers (string, integer, enumeration, ordered list, password). Each wrapper forwards a count to its hp_populate_*_elements_from_package() parser, but instead of forwarding the validated obj->package.count it derives the count from elements[0]. elements[0] is the NAME field and is always an ACPI_TYPE_STRING, so reading ->package.count from it in fact reads ->string.length through the union acpi_object. The parsers thus bound themselves against the length of the name string rather than against the real number of elements in the package. This is safe today because hp_init_bios_package_attribute() refuses any package that has fewer than the type's element count, so a parser only ever runs on a full package and never reads past it regardless of the bogus bound. An upcoming change relaxes that check to accept shorter packages. Once a parser can receive fewer elements than its per-type count, a bound taken from the name length no longer reflects the array size, and the "elem < count" loop conditions and "elem + n >= count" sub-loop guards read past the end of elements[] - an out-of-bounds heap read. Forward the validated obj->package.count to every *_package_data() wrapper so the parsers bound themselves against the real package size. This does not change behaviour for the packages that enumerate correctly today and is a prerequisite for accepting shorter packages safely. The Linux kernel CVE team has assigned CVE-2026-81011 to this issue. Affected and fixed versions =========================== Fixed in 6.12.109 with commit 436017808c7cbcdb5e49b2142090d4391e3de9a6 Fixed in 6.18.50 with commit a38127df99ae8b1851560b35b837c9952416143a Fixed in 7.2.4 with commit 400cbc3ccc88a5ad37cd85056224635ce9eba018 Fixed in 7.3-rc1 with commit e0ddfd77c0c320b7d12b6c9169303b140b798775 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-81011 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 drivers/platform/x86/hp/hp-bioscfg/bioscfg.h drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c drivers/platform/x86/hp/hp-bioscfg/int-attributes.c drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c drivers/platform/x86/hp/hp-bioscfg/string-attributes.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/436017808c7cbcdb5e49b2142090d4391e3de9a6 https://git.kernel.org/stable/c/a38127df99ae8b1851560b35b837c9952416143a https://git.kernel.org/stable/c/400cbc3ccc88a5ad37cd85056224635ce9eba018 https://git.kernel.org/stable/c/e0ddfd77c0c320b7d12b6c9169303b140b798775