ACPICA: Revert "ACPICA: avoid Info: mapping multiple BARs. Your kernel is fine."
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d410ee5109a1633a686a5663c6743a92e1181f9b · < 434c6b924e1f4c219aab2d9e05fe79c5364e37d3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ACPICA: Revert "ACPICA: avoid Info: mapping multiple BARs. Your kernel is fine."
Undo the modifications made in commit d410ee5109a1 ("ACPICA: avoid "Info: mapping multiple BARs. Your kernel is fine.""). The initial purpose of this commit was to stop memory mappings for operation regions from overlapping page boundaries, as it can trigger warnings if different page attributes are present.
However, it was found that when this situation arises, mapping continues until the boundary's end, but there is still an attempt to read/write the entire length of the map, leading to a NULL pointer deference. For example, if a four-byte mapping request is made but only one byte is mapped because it hits the current page boundary's end, a four-byte read/write attempt is still made, resulting in a NULL pointer deference.
Instead, map the entire length, as the ACPI specification does not mandate that it must be within the same page boundary. It is permissible for it to be mapped across different regions.
From the CVE record · Linux
Linux kernel ACPICA operation-region mappings can stop at a page boundary while a read or write still uses the full requested length, causing a NULL pointer dereference. This can occur when a mapping request crosses a page boundary; the input does not establish an attacker path or specify authentication or user-interaction requirements.
Engineers running Linux kernels that include the affected ACPICA mapping change should check their versions; affected version numbers were not provided.