Vulnerability record
platform/x86: hp-bioscfg: validate SPM state returned by firmware
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.
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources