CVE-2024-50141

CVE-2024-50141

High · published November 7, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
15.4
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM handler and context

PRMT needs to find the correct type of block to translate the PA-VA

mapping for EFI runtime services.

The issue arises because the PRMT is finding a block of type

EFI_CONVENTIONAL_MEMORY, which is not appropriate for runtime services

as described in Section 2.2.2 (Runtime Services) of the UEFI

Specification [1]. Since the PRM handler is a type of runtime service,

this causes an exception when the PRM handler is called.

[Firmware Bug]: Unable to handle paging request in EFI runtime service

WARNING: CPU: 22 PID: 4330 at drivers/firmware/efi/runtime-wrappers.c:341

__efi_queue_work+0x11c/0x170

Call trace:

Let PRMT find a block with EFI_MEMORY_RUNTIME for PRM handler and PRM

context.

If no suitable block is found, a warning message will be printed, but

the procedure continues to manage the next PRM handler.

However, if the PRM handler is actually called without proper allocation,

it would result in a failure during error handling.

By using the correct memory types for runtime services, ensure that the

PRM handler and the context are properly mapped in the virtual address

space during runtime, preventing the paging request error.

The issue is really that only memory that has been remapped for runtime

by the firmware can be used by the PRM handler, and so the region needs

to have the EFI_MEMORY_RUNTIME attribute.

[ rjw: Subject and changelog edits ]

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00250 · 15.4th percentile
Published
2024-11-07T15:15Z
Affected products (8)
ProductVersionsFixed in
linux/linux_kernel≥ 5.14, < 5.15.1715.15.171
linux/linux_kernel≥ 5.16, < 6.1.1156.1.115
linux/linux_kernel≥ 6.2, < 6.6.596.6.59
linux/linux_kernel≥ 6.7, < 6.11.66.11.6
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (6)
EPSS history
Timeline
  • 07 NOV 09:31Z
    ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM handler and context
    cvelistv5