In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: validate SPM state returned by firmware status_show() indexes the 3-entry spm_state_types[] with the state byte returned by firmware. update_spm_state() stores the same byte, which key_mechanism_show() uses to index the 3-entry spm_mechanism_types[]. Neither is range checked, so a state above 2 makes the world-readable status and key_mechanism files print a string from a pointer read past the array. Return -EIO for an out of range state. Compile tested only.
https://git.kernel.org/stable/c/6233e92e97b8e0673837dc73f4b91410686be691
https://git.kernel.org/stable/c/3aa66f4d7401e3fcb6ac9e27848ef4b4ac6d7bc7
https://git.kernel.org/stable/c/35fb43f1576e1352077afc33a535007e0568480c
https://git.kernel.org/stable/c/29d83bd615b6a6a214d356d411f13107b7f7dcd1
https://git.kernel.org/stable/c/23246a5c27ca42ed466f4388ebea58313508ca50