CVE-2026-90137: platform/x86: hp-bioscfg: fix password encoding bounds check
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: hp-bioscfg: fix password encoding bounds check
The password PSWD_ENCODINGS parser reads password_obj[elem + pos_values] while copying the supported password encodings from the ACPI package.
The outer loop only guarantees that elem is within password_obj_count. The encoding count is bounded by MAX_ENCODINGS_SIZE, but that does not guarantee that the ACPI package contains enough entries for all elem + pos_values accesses.
A malformed package can therefore declare a non-zero encoding count without providing enough string objects, causing the parser to read past the ACPI package array and pass an out-of-bounds string pointer and length to hp_convert_hexstr_to_str().
Add the same computed-index bounds check used by the other offset-based package parsing loops before reading password_obj[elem + pos_values].
The Linux kernel CVE team has assigned CVE-2026-90137 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit 8646a3b5ee3a5b384a22a721f37c24274d974045 and fixed in 6.6.157 with commit c224759555a13735b0d67561d818cefe00c3309a Issue introduced in 6.6 with commit 8646a3b5ee3a5b384a22a721f37c24274d974045 and fixed in 6.12.110 with commit 59fe8491ddaa03a510b352552e6ee291e7ce45d3 Issue introduced in 6.6 with commit 8646a3b5ee3a5b384a22a721f37c24274d974045 and fixed in 6.18.52 with commit ace1ba5fca0ab775b3641e154bcbc3ccde26a71a Issue introduced in 6.6 with commit 8646a3b5ee3a5b384a22a721f37c24274d974045 and fixed in 7.2.6 with commit 8a7499b8fd34438c1b11964e0e7ef5bd590fec92 Issue introduced in 6.6 with commit 8646a3b5ee3a5b384a22a721f37c24274d974045 and fixed in 7.3-rc1 with commit e213939ed9e6e6badf7aa48c4c8dd9a9cdf00615
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-90137
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/passwdobj-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/c224759555a13735b0d67561d818cefe00c3309a https://git.kernel.org/stable/c/59fe8491ddaa03a510b352552e6ee291e7ce45d3 https://git.kernel.org/stable/c/ace1ba5fca0ab775b3641e154bcbc3ccde26a71a https://git.kernel.org/stable/c/8a7499b8fd34438c1b11964e0e7ef5bd590fec92 https://git.kernel.org/stable/c/e213939ed9e6e6badf7aa48c4c8dd9a9cdf00615