firmware: arm_scmi: Reject out of range DT protocol IDs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 05a2801d8b90c1b5159618d4bd3a3c65d60f3ff1 · < 59407ccb52130f2c81f4b3cbe4f14114afceb54f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_scmi: Reject out of range DT protocol IDs
SCMI protocol IDs carried in message headers are limited by MSG_PROTOCOL_ID_MASK. The DT parsing paths noticed protocol IDs outside that range, but only logged an error and then kept processing the invalid value.
That lets a malformed 32-bit DT reg value reach helpers which take a u8 protocol ID, where it can be truncated and/or treated as a different protocol.
For channel setup, two different out-of-range values can also be used as distinct IDR keys while aliasing the generated SCMI protocol identity.
Skip DT protocol nodes whose reg value does not fit the SCMI protocol ID field before setting up channels or creating protocol devices.
From the CVE record · Linux
The Linux kernel’s ARM SCMI device-tree parsing continues processing protocol IDs that exceed the message-header field’s range. A malformed device-tree reg value can then be truncated or treated as a different protocol during channel setup or protocol device creation. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with ARM SCMI device-tree protocol nodes should check whether their kernel is affected; no affected versions are listed.