firmware: arm_scmi: Fix list protocols enumeration in the base protocol
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b6f20ff8bd94ad34032804a60bab5ee56752007e · < 2ccfcd7a09c826516edcfe464b05071961aada3f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_scmi: Fix list protocols enumeration in the base protocol
While enumerating protocols implemented by the SCMI platform using BASE_DISCOVER_LIST_PROTOCOLS, the number of returned protocols is currently validated in an improper way since the check employs a sum between unsigned integers that could overflow and cause the check itself to be silently bypassed if the returned value 'loop_num_ret' is big enough.
Fix the validation avoiding the addition.
From the CVE record · Linux
The Linux kernel improperly validates the number of protocols returned during ARM SCMI base-protocol enumeration. A sufficiently large returned value can overflow an unsigned sum and bypass the check; the input does not specify how an attacker could supply that value or what access would be required.
Engineers running Linux kernels with ARM SCMI support should check their versions; affected versions are not specified.