Re: [PATCH] platform/x86: hp-bioscfg: fix password encoding bounds check

Ilpo Järvinen <[email protected]>
Newsgroups org.kernel.vger.platform-driver-x86,org.kernel.vger.linux-kernel
Message-ID <178706361766.21379.7161904015923422300.b4-ty@b4>
On Wed, 08 Jul 2026 17:09:37 +0800, Guangshuo Li wrote:

> 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.
> 
> [...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/1] platform/x86: hp-bioscfg: fix password encoding bounds check
      commit: e213939ed9e6e6badf7aa48c4c8dd9a9cdf00615

--
 i.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.