CVE-2026-139383: 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
statusshow() indexes the 3-entry spmstatetypes[] with the state byte returned by firmware. updatespmstate() stores the same byte, which keymechanismshow() uses to index the 3-entry spmmechanismtypes[]. Neither is range checked, so a state above 2 makes the world-readable status and keymechanism files print a string from a pointer read past the array.
Return -EIO for an out of range state.
Compile tested only.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
Validate the firmware-returned SPM state before indexing the state and mechanism arrays; return -EIO for an out-of-range state.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel hp-bioscfg platform/x86 driver are exposed when firmware returns an SPM state value above 2. The affected reads are the world-readable status and key_mechanism files provided by that driver.
What does an attacker need to exploit it?
The issue depends on firmware returning an out-of-range SPM state byte. A local user can read the affected world-readable files, which may cause the kernel to print a string using a pointer read past a three-entry array.
How can I tell whether a system is affected?
A system is exhibiting the issue if reading the hp-bioscfg status or key_mechanism file causes output based on an invalid firmware SPM state greater than 2. The fixed behavior is to return -EIO instead of indexing the state or mechanism arrays.