Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 to < 23246a5c27ca42ed466f4388ebea58313508ca50affectedb2715aa2e1352c0060b9dcba57a2e465bbfbcd68 to < 29d83bd615b6a6a214d356d411f13107b7f7dcd1affectedb2715aa2e1352c0060b9dcba57a2e465bbfbcd68 to < 6233e92e97b8e0673837dc73f4b91410686be691affectedb2715aa2e1352c0060b9dcba57a2e465bbfbcd68 to < 3aa66f4d7401e3fcb6ac9e27848ef4b4ac6d7bc7affectedb2715aa2e1352c0060b9dcba57a2e465bbfbcd68 to < 35fb43f1576e1352077afc33a535007e0568480caffected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/23246a5c27ca42ed466f4388ebea58313508ca50 ↗
- https://git.kernel.org/stable/c/29d83bd615b6a6a214d356d411f13107b7f7dcd1 ↗
- https://git.kernel.org/stable/c/6233e92e97b8e0673837dc73f4b91410686be691 ↗
- https://git.kernel.org/stable/c/3aa66f4d7401e3fcb6ac9e27848ef4b4ac6d7bc7 ↗
- https://git.kernel.org/stable/c/35fb43f1576e1352077afc33a535007e0568480c ↗