ACPI: RISC-V: Fix riscv_acpi_add_prt_dep() loop handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ACPI: RISC-V: Fix riscv_acpi_add_prt_dep() loop handling
The loop in riscv_acpi_add_prt_dep() includes error conditions that are handled in a dubious - if not outright wrong - way, by continuining the loop (which skips and misses the entry pointer update to point to the next entry).
Rewrite the loop as a for loop (that handles the continuation correctly) and wrap the condition and update statements using helper functions to make it cleaner.
From the CVE record · Linux
The Linux kernel’s RISC-V ACPI dependency-handling loop can continue after an error without advancing to the next entry. The input does not describe an attacker action or specify access, authentication, or user-interaction conditions.
Engineers running the Linux kernel on RISC-V systems should check their versions; affected versions are not specified.